Results 1 to 40 of 43

Thread: C/C++ - Hello World (very simple)

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2003
    Posts
    34

    C/C++ - Hello World (very simple)

    Code:
    #include <iostream.h>
    
    int main()
    {
    
    //This prints "Hello World" and <<endl makes a new line
    cout<<"Hello World"<<endl;
    
    return 0;
    }
    Explaination:

    "#include <iostream.h>" - This is the header for cout/cin, in other words we include iostream.h so we can use the functions cout<<, and cin>>.

    "int main()" - this is where our program actually starts.

    "cout<<"Hello World"<<endl;" - This is what actually prints the text to the screen.

    Just a simple example !
    Last edited by BeholderOf; Oct 31st, 2003 at 05:17 PM.
    a 17 year old kid who has nothing better to do !
    and i never said i was right !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width