Thread: C++ problems
View Single Post
Old 03-23-2005, 09:32 AM   #2 (permalink)
fitzjj
 
Ultra Techie

Join Date: Oct 2003

Posts: 544

fitzjj

Default

It looks like you are compiling "hello world.cpp" with the output file (the program) being called "hello world.exe" which is fine and you dont seem to be getting any errors, again this is good. You now need to run the program (which you have created by compiling your source code). Find "hello world.exe" and run it. You should see "Hello World" displayed on the screen in a command line window.

One suggestion though, i would avoid using spaces in names since makes things confusing. Generally, being a java programmer i would have called it HelloWorld.exe or helloWorld.exe with the capital letter indicating a new word. Some like to use underscores (i may be wrong but i think this is what they like in c++), so it would be named hello_world.exe. Just a small point but it'll probably save you some confusion in the future.
fitzjj is offline