even a simple "hello, world" program... it just wont compile so i am compiler-less cause i dont have another option!
plz help
even a simple "hello, world" program... it just wont compile so i am compiler-less cause i dont have another option!
plz help
Please show your code.
What version of dev-c++ ?
the code is not the problem believe me
it just puts up an empty dos window for a second and quits
i tryed microsoft visual c++ works perfectly but dev c++ (latest version) does not work
i have win xp pro sp 1 if you wonder
type in
right before your return 0; statement. That should fix the problemCode:system("pause")
Knowledge is power and I want it all
-0RealityFusion0-
That explains it, The newest version is beta so it is not all complete and there are bugs, download version 4 it should work fine then.
ok i hope it will work thank you all i will post after i'll check it
Thanks guys, all working now
dev-c++ 4...
If you do what RealityFusion said, it should work with Dev C++ 5. It maybe beta, but beta 4.982 doesn't sound like it's far from 5.0. Anyway, it works great for me =)Originally posted by Mung_Foo
Thanks guys, all working now
dev-c++ 4...
Sounds like the compiler is working fine. Once your program executes, and returns from main, there is no reason for the box to stay open unless you catch it, and tell it to wait before the program ends (i.e. RealityFusion's code, or other pieces of code in the FAQ).
If it wasn't compiling. It would print error messages in the IDE itself, and never run the program.
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.
I've started inserting
so that I have to hit enter for the program to close.Code:cin.get()
I spent a couple hours watching the "black box of doom" open and close in the blink of an eye before I realized that I needed something to pause the process.
None of the beginning tutorials in C++ mention this; I think they were all written years ago when people were still using dos... a strange and bewildering time in computer programming
None of the beginning tutorials in C++ mention this
Check out the stuff in How Do I...Level 1 here
Away.
Also note, you can run the program from a shell (or within something like emacs).
The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.