// Hello, world! program #includevoid main() { printf("Hello, world!\n"); }
And this is how it look's "Hello, World!" Windows style.
#include// main Windows headers // the main entry point to your program int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { // show a very simple message box with the text “Hello, world!” displayed MessageBox(NULL, TEXT("\tHello, world!"), TEXT("My First Windows Application"), NULL); return 0; }
compiled with vs 2008 express