Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-20-2005, 07:57 PM   #1
Daemon Poster
 
Starr's Avatar
 
Join Date: Apr 2005
Posts: 926
Send a message via AIM to Starr Send a message via MSN to Starr
Default Dev C++ question

Ok, so do you know how when you use Microsoft Visual Studio it has "Start with debugging" and "Start without debugging?" Start with debugging runs through the code and you don't get to see the results. For example if you had the program say Hello world! the console would just flicker and the program would close. So you would use "Start without Debugging" because then it would tell you to press any key to continue. So you can see the results.

My question is: How do you do that in Dev C++ without using a loop? Because when I run the program it just flickers and closes and it doesn't show me the results.
__________________

__________________
AMD Athlon 64 3200+ Venice Core, MSI K8N Neo-4, 2x 512 Corsair Dual Channel, Nvidia Geforce fx 6600 256MB, 160GB HardDrive

Windows Vista Business Edition

"There are 10 types of people in the world. Those who know binary and those who don't."
Starr is offline   Reply With Quote
Old 05-21-2005, 09:05 AM   #2
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default

That's the one thing that's making me consider dropping Dev-C++ and turning to the Evil Empire of Redmond (I've got VC++6, but I'll get another one).

The debugger in Dev-C++ is completely lame. It does actually nothing, I don't even know why it's in the IDE. The Microsoft one works.
__________________

__________________
Master of common sense. If you don't like it, stop reading.
UK31337 is offline   Reply With Quote
Old 05-21-2005, 06:43 PM   #3
Daemon Poster
 
RewtGuy's Avatar
 
Join Date: Dec 2004
Posts: 595
Send a message via AIM to RewtGuy
Default Re: Dev C++ question

#include <iostream>
#include <cstdlib> // used for system ("pause");

using namespace std;

int main ()
{
cout << "Hello World";
system ("pause"); // keeps it from flicking by

return (0);
}
__________________
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
RewtGuy is offline   Reply With Quote
Old 05-23-2005, 05:29 PM   #4
Daemon Poster
 
Starr's Avatar
 
Join Date: Apr 2005
Posts: 926
Send a message via AIM to Starr Send a message via MSN to Starr
Default Re: Dev C++ question

Thank you RewtGuy. I have to turn my schools tablet in for the summer so no Visual Studio for me .
__________________
AMD Athlon 64 3200+ Venice Core, MSI K8N Neo-4, 2x 512 Corsair Dual Channel, Nvidia Geforce fx 6600 256MB, 160GB HardDrive

Windows Vista Business Edition

"There are 10 types of people in the world. Those who know binary and those who don't."
Starr is offline   Reply With Quote
Old 05-24-2005, 08:46 AM   #5
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Dev C++ question

oh yes there can be...
latest versions as well...

http://labs.msdn.microsoft.com
root is offline   Reply With Quote
Reply

« c help | C »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off



All times are GMT -5. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0