Related questions
Check if string has letter in uppercase or lowercase
i would like to know if it's possible check if one letter of a string is capitalized. Other way to see it, if all letters in the string are uppercase or lowercase. Example:
string a = "aaaaAaa";
string b = "AAAAAa";
if(??){ //…
Easiest way to convert int to string in C++
What is the easiest way to convert from int to equivalent string in C++. I am aware of two methods. Is there any easier way?
(1)
int a = 10;
char *intStr = itoa(a);
string str = string(intStr);
(2)
int a = 10;
stringstream ss;
ss &…