how to exit the program in c++. code example Example: exit() in c++ #include <stdlib.h> int main(){ exit(1); //quits program }