0
What is the code for terminating the C++ exefile program?
I mean if you press any key to it, it will automatically close the program.. so what is it? can u pls. help me?
1 Réponse
+ 8
1) #include <cstdlib>
system("pause"); at the end of the program, before return 0;
(But don't use that one, it's bad)
2) cin.get();
My favourite
3) getch(); (getchar();)