Link to home
Start Free TrialLog in
Avatar of adecold
adecold

asked on

Stop console from closing

Hey,
   I just started learning c programming. I started learning with Visual studio.net and ther was an option there that has "start without debugging" under debugging. The thing is i can't use that Visual studio anymore(I'm now trying to use visual studio express 2005 beta 1, or Dev-C++), and other compilers don't have start without debugging...
  So.. now when i run a program straight from windows, the program just runs and the console goes away almost immediately.

QUESTION: is there something i can put in my code that stops the console from closing when the program ends.(or is there something i can do to Visual studio express to allow the console to stay.)

THanks
ASKER CERTIFIED SOLUTION
Avatar of s_senthil_kumar
s_senthil_kumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adecold
adecold

ASKER

Thanks a lot....
But can you explain to me what theat function actually does.
getch() waits for a character from standard input. So that causes the console to stay until you press a key.