
-----------------------------------
Pinto2
Mon Oct 17, 2005 4:09 pm

Newbie Question
-----------------------------------
Well, I'm new to C++ and when ever i make any programs it displays them in a MS-DOS screen, and then the screen goes away almost immediantly after.  Is it supposed to appear in a MS-DOS screen, and if so how can i stop the screen from disapearing because i'm having trouble advancing in the language without seeing i'm doing.  Also, after i have compiled a program (says 'hello world'), how do i change what the program does, because even after i change what the program is supposed to do (ex:count) and re-compile it, it still says 'hello world'.

Also is there a notable difference between a project or a source file.  Sorry for the stupid qeustions but i just need a little help getting started and then i'll be on my way.

-----------------------------------
Pinto2
Mon Oct 17, 2005 6:02 pm


-----------------------------------
Ok, i just read some other post about C++, and i'm starting to think that Dev-C++ is not the only or best compiler.  How many options for compilers do i have, and could somone suggest one that is extermly uncomplicated to get, set up, and to use seeing that i'm having a hard enough time learning the language and don't need anymore difficulties.  Also, feel free to answer my questions in the post before that, thanks.

-----------------------------------
Monstrosity_
Mon Oct 17, 2005 7:19 pm

Re: Newbie Question
-----------------------------------
Well, I'm new to C++ and when ever i make any programs it displays them in a MS-DOS screen, and then the screen goes away almost immediantly after.
This is by design.

Is it supposed to appear in a MS-DOS screen, and if so how can i stop the screen from disapearing because i'm having trouble advancing in the language without seeing i'm doing.
Open it in a command prompt instead of having windows do it for you.

How many options for compilers do i have, and could somone suggest one that is extermly uncomplicated to get, set up, and to use seeing that i'm having a hard enough time learning the language and don't need anymore difficulties.
It seems to me that your compiler works fine, it does its job.. to compile the code. But since everyone likes a good look around.. go look on google. Or wait a bit longer and im sure someone will come praise there favorite compiler.

-----------------------------------
wtd
Mon Oct 17, 2005 7:38 pm


-----------------------------------
If you just double-click the created executable, the command prompt window will open, the program will run, and since the command-prompt window doesn't hang around any longer than necessary, as soon as your program finishes, the window closes.

Open the command prompt, "cd" to the directory where your executable is located, then run it.

The easiest way to get a simple, working C++ dev environment is to install a  decent OS.  Barring that, install the MinGW port of GCC.

-----------------------------------
Pinto2
Mon Oct 17, 2005 10:05 pm


-----------------------------------
Ok, so i would open MS-Dos, cd it to C:\WINDOWS\Desktop\Dev-Cpp and then run the program to make it stay on the screen longer?  Mean while, i'm still confused why 

#include 
#include 
#include 
#include 
#include 
#include 
void main() 
{ int gmode=VGA,gdriver=VGAMED; 
initgraph(&gmode,&gdriver,"c:\\tc\\bgi"); 
do 
{ 
for(int i=1;i