1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

how to compile .cpp file

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

  1. dizyn

    dizyn New Member

    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

    Which compiler you are trying your hands on?
     
  3. dizyn

    dizyn New Member

    gcc
     
  4. DaWei

    DaWei New Member

    Code:
    #include <iostream>
    
    int main ()
    {
        std::cout << "Hello, World" << std::endl;
        return 0;
    }
    
     

Share This Page