sethjackson.... i need to learn it as part of my course...we will be moving onto C++ at some point soon.
Once you do that, remember that
main must not return
void in C++. When you compile as C++, you must rewrite the function in the way Seth pointed out earlier (it is still perfectly correct in C).
thomas... there build/make and run buttons are both "greyed" out at the top. I cannot click them from the toolbar or from the menu and the shortcut commands do not work either.
I take it you use RC2 then... that version does not allow you to do most things without having a project.
If you make a project (choose "New Project" and use the "console app" template), you should be able to use those buttons.
If they are still dead when having a project, it may be due to a bug in the RC2 version related to a corrupted toolbar layout (delete a file named .codeblocks.layout which is in your home directory).
Did you try running your application from a
cmd prompt (DOS window)?