R
Rick
For some reason my function to capitalize the first letter in a string
and keep all the other letters lowercase isn't working. This is what I
have.
string convname(string name)
{
int len;
len = name.length();
name[0] = toupper(name[0]);
for(int i = 0; i < len; i++)
name = tolower(name);
return name;
}
and keep all the other letters lowercase isn't working. This is what I
have.
string convname(string name)
{
int len;
len = name.length();
name[0] = toupper(name[0]);
for(int i = 0; i < len; i++)
name = tolower(name);
return name;
}