Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 15th, 2006, 04:55 PM
B. Williams
Guest
 
Posts: n/a
Default 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
  #2  
Old November 15th, 2006, 05:15 PM
Salt_Peter
Guest
 
Posts: n/a
Default Re: Help creating an executable from a .cpp


B. Williams wrote:
Quote:
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()
{
}

  #3  
Old November 15th, 2006, 05:45 PM
B. Williams
Guest
 
Posts: n/a
Default Re: Help creating an executable from a .cpp


"Salt_Peter" <pj_hern@yahoo.comwrote in message
news:1163611981.742943.212630@h54g2000cwb.googlegr oups.com...
Quote:
>
B. Williams wrote:
Quote:
>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.


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles