Question

I am trying to create this function in Borland C++ v3.1 but it gives me the error "Declaration Syntax Error". Can anyone help me with this error?

bool f(bool* b)
{

}
Was it helpful?

Solution

Put this at the top of your source file. If it works after that, then Borland c++ simply doesn't support bool type. If not, I have no clue why you get Syntax error.

typdef byte bool;
#define true 1
#define false 0
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top