When I run a method of type bool in c++ with a return statement like so:
bool method() {
return true;
}
there is no output at the console. To get output, I have to do:
bool method() {
cout << "true";
return true;
}
Is this the right approach?
Aucun commentaire:
Enregistrer un commentaire