C++ question

Hello evryone!

My question:

I found this site : cplusplus.com/doc/tutorial/

pretty nice, but my question is, where do i write the code? do I need an editor or whatever? where can I find one?

Sam, thanks

just click the download button thats on the left
on the link:
msdn.microsoft.com/vstudio/express/visualc/

this is the express edition
it works the same way the reguler
one does.
have fun with your “stuff” :laughing:

You will need a C++ compiler to compile the code. Majority of compilers include editors with lots of near features (such as colored text)

I personally recommend BloodShed Dev-C++ It is a VERY GREAT, FREE C/C++ compiler/editor.

I tried that one and the window (in wich hello world was suppose to apear, the window would not stay open for more thatn 1 third of a second…

Um, on a typical windows system if you didn’t put something prompting you for input after it said hello world it would probably just exit. something like a call to getche() ; or a statement like while ( ! kbhit() ) ; at the end would would print the line and then wait for a keypress before closing the box.

(I am assuming that getche() and kbhit() are valid functions for your compiler.)

hmm, wierd, it still does it no matter where I put those functions, anyone else has some Idea of what would make it work??

anyone knows why my debug window opens for a 1/4 second and then closes??

in the FAQ it says the following :

I tired it and it does the same thing, and the compiler even signals errors…

thx, sam

Would you be able to open a dos window using [run] “cmd” ?
and then in this dos window “cd” to the correct directory and then run your copiled program ? C> a.out or a.exe or whatever it is called?
Then your “debug” window may stay open?

oops forgot to mention that maybe insead of:
intmain(int argc, char **argv)
Should be:
int main(int argc, char **argv)

Here’s a good site for this:

vbforums.com

Sure, it says VB, but the C++ section is pretty heavily traveled. Most questions can be answered in short order, and great depth.