Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Question about Dev C++ Free Download
Closed Thread
Old 11-29-2004, 01:44 PM   #1 (permalink)
 
Junior Techie

Join Date: Oct 2004

Posts: 63

See Plus Plus

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  
Old 12-01-2004, 12:45 AM   #2 (permalink)
 
Ultra Techie

Join Date: Jun 2004

Posts: 973

intercodes

Send a message via Yahoo to intercodes
Default

See Plus Plus,

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


intercodes is offline  
Old 12-02-2004, 09:25 AM   #3 (permalink)
 
Junior Techie

Join Date: Oct 2004

Posts: 63

See Plus Plus

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  
Old 12-02-2004, 09:30 AM   #4 (permalink)
 
Ultra Techie

Join Date: Jun 2004

Posts: 973

intercodes

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  
 
Closed Thread

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