Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2004, 01:44 PM   #1 (permalink)
Junior Techie
 
Join Date: Oct 2004
Posts: 63
Question Question about Dev C++ Free Download

I recently downloaded the Dev C++ free download so I could work on my C++ homework from home.

My Professor, (as well as I for my own knowledge), wants the results printed out. However, whenever I run through the program, after the program has compiled and run, the results box closes, so I am left with only the source code and the knowing that I did not make any errors.

Is there any way to change that, or is there a program out there that displays the results and keeps them there until I decide to close it?

Thanks guys.
See Plus Plus is offline   Reply With Quote
Old 12-01-2004, 12:45 AM   #2 (permalink)
Ultra Techie
 
Join Date: Jun 2004
Posts: 973
Send a message via Yahoo to intercodes
Default

See Plus Plus,

How about using 'getch()' in the code?


intercodes is offline   Reply With Quote
Old 12-02-2004, 09:25 AM   #3 (permalink)
Junior Techie
 
Join Date: Oct 2004
Posts: 63
Default

I will have to try it out, because this program is driving me nuts! Would I put that before int main() ?
__________________
I hate Pi
See Plus Plus is offline   Reply With Quote
Old 12-02-2004, 09:30 AM   #4 (permalink)
Ultra Techie
 
Join Date: Jun 2004
Posts: 973
Send a message via Yahoo to intercodes
Default

See Plus Plus,

put the getch() function next to the display function. so the screen will hold on unitl you press and 'Enter' key.
intercodes is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:12 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0