As long as userAge is a integer, you need no check, and the checks are done from the STL.
As long as you write such:
1 2
int userAge=0;
cin>>userAge;
userAge will be a integer, and if user inputs something wrong, he will have to write twice the input.
If you want to set all text in upper case, get the text and loop in all the string with a "toupper" function (Example:
1 2 3 4 5 6 7 8
char Text[512];
cin>>Text;
unsignedint Length = strlen(Text);
for(unsignedint i = 0; i < Length; ++i)
{
Text[i] = toupper(Text[i]);
}
// Now Text is uppercase.
You can also get raw text and convert it to Number with atoi or strtoul/strtol/strtod.
You also have the opposite way (itoa). There is no ftoa unless you make your own routine.