As a part of my program, I have to convert a column of strings in a vector(containing strings of both upper and lower case) to uppercase. The column is accessed as array.at(i).at(2)
I have tried to convert character by character using toupper() , but I didnt work for me.
Please help me with this. I have my deadline tomorrow.
I didnt get any errors while compiling the same program you sent. But I got a message - vector subscrpit out of range. Did I make any mistake? Please help me.
Nope you didn't. But Ancient Dragon had a small error in his example. This line: for(size_t i = 0; i < a.size(); i++) Should have been: for(size_t i = 0; i < lst.size(); i++) Also read this about void main();
And is this you whole program? because you're including a few headers that you don't need...