+ 1

I want to know how to use exit function in c++ ,somebody please please answer me

5th May 2017, 6:42 PM
Harsh
Harsh - avatar
4 Answers
+ 4
you have to use break;
5th May 2017, 7:35 PM
‎ɐısıօՏɐ
‎ɐısıօՏɐ - avatar
+ 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
5th May 2017, 7:25 PM
‎ɐısıօՏɐ
‎ɐısıօՏɐ - avatar
+ 2
You can use: exit(EXIT_FAILURE); or exit(EXIT_SUCCES); if you want to end your program.
5th May 2017, 9:15 PM
Jeroen
Jeroen - avatar
+ 1
For exiting the function in for loop
5th May 2017, 7:29 PM
Harsh
Harsh - avatar