#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
This works. [...]The original code works too (in C).
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.