Cmd closes after user input

i'm a newbie to c++ and i'm trying to make a simple program that accepts user input, simple stuff. When the user (me) enters a number to be sent to the console and i press enter so it accepts the data, it closes the command prompt and thus ending the program. I just need to find a key that i can use to continue but doesn't close cmd. please help, this is kinda crucial to me learning c++
no, thats not what im looking for. it doesnt close instantly, i never said that. i said when i press enter it closes.
So... you press enter, it waits several seconds and then closes? Or it is closes instantly after pressing enter?

If second, that topic will be useful to you.
well it is second. ill check it out again.
U can use loop while condition is not false and keep on asking and continuing...or u can use window.h time functions..is that what u want?
Topic archived. No new replies allowed.