Quote:
void ToTitleCase( char ptr[] )
{
if ( *ptr >='a' && *ptr <='z' ) {
*ptr -= 32; //changes from lower case to upper
}//endif
ptr++;
while ( *ptr ) {
if ( *ptr >='A' && *ptr <='Z' ) {
*ptr += 32; //changes from upper case to lower
}//endif
ptr++;
}//endwh
}//endfn ToTitleCase
Believe it or not Amarjit, you actually helped with this more than it seems. You got me looking for the upper and lower headers, then my refence book said something about ASCII, so I took a program that my C++ professor wrote and brought it home. It's got all the ASCII char values for binary/hex/oct/dec/and chr. It's really quite cool.