convert uppercase char to lowercase c++ code example
Example 1: 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);
Example 2: convert characters to lowercase c++
str[i] = tolower(str[i]);
Example 3: convert from uppercase to lowercase c++
int i = 0;
while(str[i])
{
if(str[i] == std::toupper(str[i]) && std::isalpha(str[i]) == 1024)
str[i]+= 32;
++i;
}