how to compile .cpp file

Discussion in 'C' started by dizyn, Jun 9, 2007.

  1. dizyn

    dizyn New Member

    Joined:
    Jun 9, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i have .cpp file which has hello world example in it.
    i don't know how to compile it from command line
    any help please
    thanks.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,352
    Likes Received:
    382
    Trophy Points:
    83
    Which compiler you are trying your hands on?
     
  3. dizyn

    dizyn New Member

    Joined:
    Jun 9, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
  4. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Code:
    #include <iostream>
    
    int main ()
    {
        std::cout << "Hello, World" << std::endl;
        return 0;
    }
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice