struct value
{
char c[29];
};
char toLower(char na)
{
char c;
char str[29];
int i=0;
while (na[i])
{
c=word[i];
str= (char)(tolower(c));
i++;
}
return (str);
}
[B][U]in the main program[/U][/B]
cout<<"Enter The your name: "<<endl;
cin>>v.c;
toLower(v.c);
This is what i wrote to convert the insert text to lower case, but it doesn't work, can some one help me write the code for this, all what i want to do is to convert the text entered by the user to lowercase
question 2
when the user inputs a text he might input two words, i want the user to enter only one word, so i want to write a function where it returns a warning if the user enters 2 words.
please help me with the code :( :(