I have wery little code:
// prototype
bool Foo();
int main( ... )
{
if( Foo() == false )
return 1;
return 0;
}
bool Foo()
{
return true;
}
What is wrong with this? The compiler (VS 2010) shows a lot of syntax error with “)” and “;” and im not doing it right with my prototype?
I think your problem is that bool is not defined.
It depends how your compiler is set but bool is a type that is frequently not supported without defining it yourself or including it.
I found this :
http://msdn.microsoft.com/en-us/library/tf4dy80a.aspx
Cheers
Jason