Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: C++ Tutorial | Hello World | 1

  1. #1
    Senior Member
    Join Date
    Mar 2013
    Location
    Russia
    Posts
    240
    Rep Power
    5

    C++ Tutorial | Hello World | 1


    Hello.
    Now Will Show You That C++ Is So Easy Programming Language.
    Lesson1: Hello World.

    Here The Code Will Be
    Code:
    #include <iostream>
    using namespace std;
    
    int main(){
    	cout << "Hello World"<<endl;
    	system("pause");
    
    	return 0;
    }
    Now Let's Understand The Code.
    ------------
    #include
    -This is a key for C++, the main code can't be without it, in this tutorial will be "#include <iostream>
    It need's to be at the top of the code like you see.
    ------------
    using namespace std;
    -Taken for "using the standard namespace"
    -Will Let you use cout and cin when you need.
    ------------
    Code:
    int main(){
    cout <<"Hello world!" <<endl;
    return 0;
    }
    -The Main Function of the program
    -You Need to write the main function to start every program you write.
    -You must include main funtion for the program to execut.
    -You need to finish writing the code with "return 0;" this ends the Code.
    **At Link "cout <<"Hello world!" <<endl;" The Text Hello world you can replace it, this is the text is writ'n when the program start's up
    This Will Pop Up When you Click On Run Button Or F5
    Click On "Yes" Button

    Program


    Sorry If The English Was bad.
    If i forgot anything please tell me
    Thanks
    Hope You Understand this.
    Need Any Help, Contact Me at Skype: Mation.vis (Please Write SSH And Your Name In The Request Nor will no accept it)
    Last edited by Karizan; 04-19-2013 at 12:55 PM.

    The Best VPN!
    VVV Click Below VVV


  2. #2
    Senior Member
    Join Date
    Mar 2013
    Location
    Russia
    Posts
    240
    Rep Power
    5
    And Also At Line 4 In The Code
    Code:
    cout << "Hello World"<<endl;
    you can remove the "<<endl"
    it will make it all one sentence, like that.

    The Best VPN!
    VVV Click Below VVV


  3. #3
    Can you help me find molly?
    Join Date
    Mar 2013
    Location
    Elektro
    Posts
    223
    Rep Power
    5
    Thanks for your input man. Really will follow this one up! Hope you will do something with the feedback i gave you on Skype!

    The Best VPN!
    VVV Click Below VVV


  4. #4
    SSH-Admin/Leader
    Join Date
    Apr 2013
    Location
    USA
    Posts
    571
    Rep Power
    10
    Maybe Put some download links on where we can get tools for C++?
    Although good post. Thanks for sharing how to do this

    The Best VPN!
    VVV Click Below VVV


  5. #5
    Senior Member
    Join Date
    Mar 2013
    Location
    Russia
    Posts
    240
    Rep Power
    5
    np but tools of what?

    The Best VPN!
    VVV Click Below VVV


  6. #6
    Senior Member
    Join Date
    Mar 2013
    Location
    Russia
    Posts
    240
    Rep Power
    5
    Sure i will Dountill

    The Best VPN!
    VVV Click Below VVV


  7. #7
    Senior Member Tynted's Avatar
    Join Date
    Mar 2013
    Location
    In glory hole sucking
    Posts
    110
    Rep Power
    5
    Quote Originally Posted by Karizan View Post
    np but tools of what?
    I think he means an IDE

    The Best VPN!
    VVV Click Below VVV


  8. #8
    New member
    Join Date
    Mar 2013
    Location
    Israel
    Posts
    18
    Rep Power
    0
    I hate C++,has COMPLETELY different syntax ...

  9. #9
    Senior Member
    Join Date
    Mar 2013
    Location
    Russia
    Posts
    240
    Rep Power
    5
    Yep with you it's hard, but it make powerful programs and very good programs.
    Try to understand it

    The Best VPN!
    VVV Click Below VVV


  10. #10
    I'm Batman!
    Join Date
    Mar 2013
    Location
    Wayne Manor
    Posts
    159
    Rep Power
    5
    Maybe i should start with something more easy O.O

    The Best VPN!
    VVV Click Below VVV


Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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