Where do you define the function YesNo()?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
> I didnt =/, i thought it was included in a library
Well, you'll need to define one then, or else don't use it.
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();
Oy! There's a lotta weird strangeness going on there.
[edit]It looks like you tried to grab this function [post=150851]here[/post]. Poke around up that thread a bit and see how that code got working.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
No, I meant this stuff.
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.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Perhaps you missed my edit.[edit]It looks like you tried to grab this function [post=150851]here[/post]. Poke around up that thread a bit and see how that code got working.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314