Help creating an executable from a .cpp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • B. Williams

    #1

    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
  • Salt_Peter

    #2
    Re: Help creating an executable from a .cpp


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

    Comment

    • B. Williams

      #3
      Re: Help creating an executable from a .cpp


      "Salt_Peter " <pj_hern@yahoo. comwrote in message
      news:1163611981 .742943.212630@ h54g2000cwb.goo glegroups.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.


      Comment

      Working...