I need to convert a string in C++ to full upper case. I\'ve been searching for a while and found one way to do it:
#include #include
You could do:
string name = "john doe"; //or just get string from user... for(int i = 0; i < name.size(); i++) { name.at(i) = toupper(name.at(i)); }