Click to See Complete Forum and Search --> : converting a string to upper case


UprightMan
09-21-2002, 06:48 PM
If I have a string containing lowercase letters and numbers, is there an easy way to convert it to a string containing the same number but with uppercase letters? (without using the ios::uppercase flag).

i.e. string x = "0x00cc"
x.dosomething();
cout << x ; outputs 0x00CC

TIA

UprightMan
09-21-2002, 08:04 PM
nm, did it using a loop and toupper().