I'm stuck on a function call:
bool confirmThis(string response);
int main()
string response = "";
cout << "Please enter a number: ";
getline(cin, response);
if !(confirmThis(response)) {barkAtUser();}
return 0;
}
bool confirmThis(string response) {
return false; //just for testing
}
I get a syntax error on my function call. (it doesn't like the !) Can anybody see why? Thanks.
Last edited on
if (!confirmThis(response)) {barkAtUser();}// ! must be inside parentheses
Last edited on