+ 1
I want to know how to use exit function in c++ ,somebody please please answer me
4 Respuestas
+ 4
you have to use break;
+ 4
Do you mean std::exit? What do you want to use it for? Please describe your problem in more detail, so we can help you
+ 2
You can use:
exit(EXIT_FAILURE);
or
exit(EXIT_SUCCES);
if you want to end your program.
+ 1
For exiting the function in for loop