on the "<<" before the values[i].It only allows me to print a single character if I add a second [] but I want the whole string.Where am I wrong?
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<string> values;
values.push_back("Menu");
values.push_back("Option");
for (int i = 0; i < values.size(); i++)
{
cout << i + 1 << ") " [b]<<[/b] values[i] << endl;
}
}

New Topic/Question
Reply



MultiQuote



|