Hello..
When I run my application from command prompt, how can I terminate it without closing command prompt? (so that I stay in a directory where I previously went to)
Thanks for help
Hello..
When I run my application from command prompt, how can I terminate it without closing command prompt? (so that I stay in a directory where I previously went to)
Thanks for help
Press 'Ctrl+C', that should work.
(If not then try 'Ctrl+J')
Thanks. Ctrl + C works
Also, in rare cases where CTRL-C does not work, CTRL-break sometimes does.
If it's your application that you're running you should code it so that you don't have to press CTRL-C. If you put a cin.get() or something at the end, just press enter and it should exit on its own. Unless you have an infinite loop or something.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Yes, I have infinite loop.