I'm just wanna know how to keep my C++ program open until i press close button(x).
I mean if i write a simple program like printing Hello World and make an exe so the program would immediately close after writing that.
so suggest a code to keep it open until i close button.