|
-
Jan 19th, 2006, 10:24 AM
#1
Thread Starter
Frenzied Member
win32 console application.
i created the hello world test application, it makes this code
Code:
// test4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
but how do i actually run it and see the output hello world?
-
Jan 19th, 2006, 11:09 AM
#2
Re: win32 console application.
You select Project->Build from the menu.
On a side note, you created a non-empty project - this is bad for beginners. Create an empty project and make sure you actually include the correct headers: <stdlib.h> in your case, but that's only because you've written the C-style HelloWorld, not the C++ style as you should (the source file ends in .cpp, which means it's C++.)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|