#include <algorithm>
any_of(str.begin(), str.end(), isupper)
char character = 'A'; //0100 0001
if((character & 0x20) == 0) {
//is uppercase
}
#include <cctype>
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char str[] = "This Program Converts ALL UPPERCASE Characters to LOWERCASE";
for (int i=0; i<strlen(str); i++)
{
if (isupper(str[i]))
/* Converting uppercase characters to lowercase */
str[i] = str[i] + 32;
}
cout << str;
return 0;
}
Code Example |
---|
Cpp :: c++ read integers from file |
Cpp :: tarray ue4 c++ |
Cpp :: 2d array using vector |
Cpp :: c++ rule of five |
Cpp :: format string cpp |
Cpp :: cpp split string by space |
Cpp :: find length of array c++ |
Cpp :: cpp mst |
Cpp :: c++ lock |
Cpp :: what is the short cut way to find the max and min element in an array in c++ |
Cpp :: include spaces while reading strings in cpp |
Cpp :: delete last char of string c++ |
Cpp :: queue in c++ |
Cpp :: allow cross origin |
Cpp :: cases in cpp |
Cpp :: random number cpp |
Cpp :: 2d vector c++ size |
Cpp :: vector of strings initialization c++ |
Cpp :: how to check if a number is prime c++ |
Cpp :: terminal compile c++ |
Cpp :: c++ initialize multidimensional vector |
Cpp :: How to pause a c++ program. |
Cpp :: all possible permutations of characters in c++ |
Cpp :: c++ reference |
Cpp :: how to print in cpp |
Cpp :: detect end of user input cpp |
Cpp :: sort vector in reverse order c++ |
Cpp :: hello world in c++ |
Cpp :: c++ logger class example |
Cpp :: c++ if else |