469,626 Members | 1,336 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Help creating an executable from a .cpp

Will someone tell me know how to create an executable file from a .cpp file? I am using Microsoft Visual C++ 2005 Windows XP SP2.

Thanks
Nov 15 '06 #1
2 1136

B. Williams wrote:
Will someone tell me know how to create an executable file from a .cpp file? I am using Microsoft Visual C++ 2005 Windows XP SP2.

Thanks
Please don't Post using hyper text.

The following is an executable if you compile it.

// test.cpp
#include <iostream>

int main()
{
std::cout << "hello!\n";
}

In fact, all you need is

int main()
{
}

Nov 15 '06 #2

"Salt_Peter" <pj*****@yahoo.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>
B. Williams wrote:
>Will someone tell me know how to create an executable file from a .cpp
file? I am using Microsoft Visual C++ 2005 Windows XP SP2.

Thanks

Please don't Post using hyper text.

The following is an executable if you compile it.

// test.cpp
#include <iostream>

int main()
{
std::cout << "hello!\n";
}

In fact, all you need is

int main()
{
}
I would like to apologize for the html post. Thans for your assistance.
After I compiled it, I found the .exe in the debug folder.
Nov 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Clark | last post: by
9 posts views Thread by Michael Dekson | last post: by
1 post views Thread by Jon H | last post: by
37 posts views Thread by John Salerno | last post: by
5 posts views Thread by bean330 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.