Hi,
Im new here.i need help about the boolean func. as a first step i wrote the below part. it actually at first check the length then the characters but the charcheck bool function does not work how can i do that? thanks.
int main()
{
string name,chars;
bool check=true;
cout<<"Please enter your name: "<<endl;
cin>>name;
name[0]=toupper(name[0]);
ToLower(name);
cout<<name<<", please enter the character set: ";
cin>>chars;
do{lencheck(chars,name);}while(true);
if(check=lencheck(chars,name))
{charcheck(chars,name);}
return 0;
what is your char check function doing ? i assume it checks for the whole string to see if it has some non-alphabetic characters ? if yes, I have edited your for loop.. have a look.