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


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-13-2005, 05:46 PM   #1
Apl
Baseband Member
 
Apl's Avatar
 
Join Date: Jun 2005
Posts: 21
Send a message via AIM to Apl
Default What Program is good?

Hi, i'm new to this forum. And i really hope i could get some help from you guys. ^.^

This is my first thread and first question...
so my question is, What program do you use?

I'm currently using Dev-C++ to learn C++
I'm getting tutor from this website. http://www.cplusplus.com/doc/tutorial/

But then when it come to compiling,something went wrong >.<
I did exactly as the website show on the example and i compile it, but when i open file that i compiled it just went blink and disappear.
So now i'm trying to find a better program that i could use to learn C++
or did i did something wrong.. o_O

Please name the program you use or you think is good.
Thank you
__________________

Apl is offline   Reply With Quote
Old 06-13-2005, 07:56 PM   #2
Baseband Member
 
Knight's Avatar
 
Join Date: May 2005
Posts: 77
Default

Insert an input prompt. I'm assuming all your program does is display "hello world" or some sort. After executing your program, your system closes the screen after it is run. Inserting a prompt will keep it open until you press enter.
__________________

__________________
while(mySalary<yourSalary){
mySalary += moreMoney;
}
mySalary += (moreMoney*moreMoney);
System.out.println("Now there's a salary: $" + mySalary);
Knight is offline   Reply With Quote
Old 06-14-2005, 02:28 AM   #3
Apl
Baseband Member
 
Apl's Avatar
 
Join Date: Jun 2005
Posts: 21
Send a message via AIM to Apl
Default

Oooh, i see.
okay, thank you Knight.
I only know how to do system ("pause");, which i found from the other thread but i guess it's the same as what you're talking about...
Apl is offline   Reply With Quote
Old 06-14-2005, 06:34 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: What Program is good?

using system ("pause") is a little sloppy...

the command system gets a command and runs it, that means it's not really a C function.

you could have system("notepad") to launch notepad,

you should use gets,scanf,getchar or something simillar to wait for a keyboard interruption.
root is offline   Reply With Quote
Old 06-14-2005, 03:24 PM   #5
Apl
Baseband Member
 
Apl's Avatar
 
Join Date: Jun 2005
Posts: 21
Send a message via AIM to Apl
Default Re: What Program is good?

Quote:
Originally Posted by root
using system ("pause") is a little sloppy...

the command system gets a command and runs it, that means it's not really a C function.

you could have system("notepad") to launch notepad,

you should use gets,scanf,getchar or something simillar to wait for a keyboard interruption.
Well, I'm still on section 1.2 on the tutorial so i don't really know all those gets,scanf,getchar things yet. >.<
thanks though. ^^
It would be great if you put an example.. hehe
Apl is offline   Reply With Quote
Old 06-14-2005, 05:59 PM   #6
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: What Program is good?

http://lab.msdn.microsoft.com/expres...c/default.aspx

Use that compiler. That way all you have to do is click "Build Solution" and the "Start without debugging" then it will pause so you can read the output.
__________________

__________________
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
Reply

« h | Java Help! »
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 01:46 PM.


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