Answers for "c++ toupper char in a string"

C++
4

convert all characters in string to uppercase c++

transform(str.begin(), str.end(), str.begin(), ::toupper);
Posted by: Guest on September-14-2020
2

c++ char to uppercase

char choice; 
// it will instantly transform it to upper case without the need
// to convert it to int first
choice = (char)toupper(choice);
Posted by: Guest on December-30-2020

Browse Popular Code Answers by Language