GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Oct-2009, 03:58
preetpnd preetpnd is offline
New Member
 
Join Date: Oct 2009
Posts: 2
preetpnd is on a distinguished road
Unhappy

Quick exit


Sometimes it so happens that while executing the program for the result the o/p is continuous or gets stuck in the DOS shell.

my Question: Is there any command to quit this shell and return to the main program or C shell directly.
  #2  
Old 25-Oct-2009, 09:20
Kimmo Kimmo is offline
Member
 
Join Date: Mar 2007
Location: Finland
Posts: 285
Kimmo is a jewel in the roughKimmo is a jewel in the roughKimmo is a jewel in the rough

Re: Quick exit


Are you actually talking about DOS Shell and C Shell or just the Windows command prompt / MS DOS?

I don't know about the former two, but in the latter two try Ctrl-C.
  #3  
Old 25-Oct-2009, 22:54
preetpnd preetpnd is offline
New Member
 
Join Date: Oct 2009
Posts: 2
preetpnd is on a distinguished road
Red face

Re: Quick exit


'm taking abt C shell and DOS Shell, when we execute/run a program it goes to the DOS shell right....sometimes due to some error like improper loop endings the programs o/p becomes continous.....in tat case i forcibly exit the program.... i want to know if there's any shortcut to exit the DOS shell and returnin to C without exiting..... Hope u got me...??
  #4  
Old 26-Oct-2009, 20:47
Howard_L Howard_L is online now
Regular Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 803
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: Quick exit


It sounds like you are using MS Visceral C++?
And when you run a program from there it starts a msdos console for your program to run and normally when it ends the console disapears but when you have and error that creates endless loop you're stuck?

What, is it running full screen? ...and you can't click on the X box in the top right corner?
If you hit ctrl-alt-delete keys simultaneously the task manger will come up and you can select the process (it will have your program name) and then "select end process".

There is probably a way to change the way that console opens by default.
It might be as simple as changing the console preferences for the Start>Accessories>MSDOS console starter icon.
Just right click on it and I think you can select properties or something like that.
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link List In C Peter_APIIT C Programming Language 33 12-Jun-2008 14:33
Str_Misaligned in Double Link List Peter_APIIT C Programming Language 1 29-Feb-2008 21:50
Not reading the contents of the text file chagalam2001 C Programming Language 0 06-Feb-2008 09:49
functions seems not to exit from a certain code block jaro C Programming Language 3 22-Mar-2006 00:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:44.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.