1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,287
    Likes Received:
    364
    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:
    Code:
    #include <iostream>
    
    int main ()
    {
        std::cout << "Hello, World" << std::endl;
        return 0;
    }
    
     

Share This Page