std::string lowercase (const std::string& s)
// Converts all upper-case alphabetic characters in s to the
// corresponding lowercase characters.
{
return s;
}
I'm reading a data structures book teaching myself and I'm lost at how to go about this. I know we can take the value of s and store it then return the lowercase value but how can you do it in unix and the book goes don't use the char manipulation functions such as strcpy or to copy the characters in an array, convert then copy back to the
string. So I'm lost on this. Anyone write one for this or know of a site that has an example of this where I could study and try to get it to working. Any tips or suggestions be appreciated. Have a nice day.
// Converts all upper-case alphabetic characters in s to the
// corresponding lowercase characters.
{
return s;
}
I'm reading a data structures book teaching myself and I'm lost at how to go about this. I know we can take the value of s and store it then return the lowercase value but how can you do it in unix and the book goes don't use the char manipulation functions such as strcpy or to copy the characters in an array, convert then copy back to the
string. So I'm lost on this. Anyone write one for this or know of a site that has an example of this where I could study and try to get it to working. Any tips or suggestions be appreciated. Have a nice day.