vector<string> div;
div.pushback("a");
div.pushback("b");
div.pushback("c");
for(int i= 0; i < div.size(); i++) {
cout << "Letters: " << div[i] << endl;
}
cin.get();
Output:
Letters: a
Letters: a, b
Letters: a, b, c
I would like the output like this:
Letters: a
Letters: b
Letters: c
Thanks for your help in advance, Regards X