error: 'bool' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once)
error: for each function it appears in.)
error: expected ';' before 'chose'
Note that this is a C application not C++. For whatever reason the code works fine when I make the project a C++ applications instead.
But the char array gives no errors, what is the problem.
C has no bool type. Just use char's, or some other small data type that your comfortable with, and decide on values for true/false. i.e. 'y' is true and 'n' is false.