You have a wayward closing brace here:
cout<< findbig ( num1, num2 ) <<" is the larger of "<< num1<<" and " <<num2<<"\n";
}
>I'd have loved to use your second option, but my professor
>is very particular about the format of his assignments...
I didn't expect you to use it anyway. That was in response to another poster who asked how I might solve the problem for any number of values.
>A few questions narue...what exactly does the '?' do?
It's a conditional operator, roughly equivalent to this:
if ( num1 > num2 )
return num1;
else
return num2;
>but seem to be having a little problem.
Your problems always seem to be strictly syntax based. Programming is all about an eye for detail, C++ programming even more so. You need to understand the rules and follow them. Here are your mistakes. Try to learn what they are, and why you keep making them:
>getnumbers(&num1, &num2)
Semicolons are consistently required. Find out where, and don't forget them.
>cout<< num2<< " is the larger of " <<num1<< " and "<< num2 "\n";
Every << single << individual << item << is << separated << by << an << insertion << operator.
>cout<< num1 <<" is the larger of "<< num1<< " and " <<num2 endl "\n";
Ditto.
An else statement cannot exist without a matching if statement.