What's
locale loc;
for? Can't you just do ...
Code:#include <iostream> #include <string> using namespace std; int main() { string thing = "asdf"; cout<< endl << thing; for ( int i=0; i<4; i++ ) { thing[i] = toupper( (int) thing[i] ); } cout<< endl << thing; return 0; }