Connecting Tech Pros Worldwide Help | Site Map

Help creating an executable from a .cpp

B. Williams
Guest
 
Posts: n/a
#1: Nov 15 '06
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
Salt_Peter
Guest
 
Posts: n/a
#2: Nov 15 '06

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()
{
}

B. Williams
Guest
 
Posts: n/a
#3: Nov 15 '06

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.


Closed Thread