int YesNo(), y, n, yes, no, h;
cout<<"Are you a Human? Enter y or n for yes or no."<< endl;
cin>> y, n, yes, no, YesNo();
Declaring a function prototype along with variables. Unusual. This looks like a creature from another language with all the successive use of the comma operator.
What should i define YesNo() as then?
I just need to to put in a y, n, yes or no and have it recognise it and do it based on the check function, can you suggest anything?
Oh sorry i missed that,
i changed the int check to char check because getint doesnt work, and removed the check for Yes and yes because they arent chars,
its now
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.