C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 23rd, 2004, 12:20 AM
Cguy Cguy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 Cguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
My command prompt is broken!

I wrote a c program and compiled it using the dev c++ with no errors. I ran it and as soon as i pressed enter it closed on me. So then I thought it was my compiler. So I tried using microsoft visual c++ the same thing happend as soon as i pressed enter the command prompt closed. I then sent the code to my firend and had him put it in his compiler. It worked fine. So I think my command promt is broken, Does anyone know how i would fix this problem?????

Reply With Quote
  #2  
Old August 27th, 2004, 07:37 PM
drizzle drizzle is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: OREGON
Posts: 24 drizzle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
what does your code look like?

Reply With Quote
  #3  
Old September 1st, 2004, 04:48 PM
pmxer pmxer is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Normal IL
Posts: 4 pmxer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to pmxer
try a:

system("pause");

at the end of your program right before your

return 0;

Reply With Quote
  #4  
Old September 3rd, 2004, 10:26 AM
tomdx tomdx is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 7 tomdx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
is that the whole program? show us the whole program...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > My command prompt is broken!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT