Results 1 to 4 of 4
  1. #1
    CrypTology-'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    78
    Reputation
    19
    Thanks
    2
    My Mood
    Bored

    [Help]C++ beginner noob

    im using cplusplus. co m to learn how to code
    but im doing the hello world thing
    but i dont understand what the iostream file really does for the program
    and also does 'using namespace std" allow you to name things in your program?
    msn: Dynamis-Kaizer@live.com
    Steam: holyinvoker62






    ~Goals~
    ( ) 50 Posts
    ( ) 200 Posts
    ( ) 300 Posts
    ( ) 500 Posts
    ( ) 1000 posts

    ( )MSG 4 IN combat arms
    ( ) CSM 1 IN combat arms
    ( ) Learn C++
    ( ) Get a girlfriend



    https://www.mpgh.net/forum/2-general/...t-develop.html

  2. #2
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    iostream provides input and output functionality using streams

    And no std is a namespace inside iostream thats allows you to use cout, cin and much more

  3. The Following User Says Thank You to whit++ For This Useful Post:

    CrypTology- (02-03-2011)

  4. #3
    Mookamoka's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by CrypTology- View Post
    im using cplusplus. co m to learn how to code
    but im doing the hello world thing
    but i dont understand what the iostream file really does for the program
    and also does 'using namespace std" allow you to name things in your program?
    well #include <iostream> basically makes it so you can use cout, cin, and more(if you dont know what that is your gunna have some trouble making hello world). iostream is included in most c++ programs.

    The real code to use cout is actually:

    std::cout<<"blah blah"<<endl; (or something)

    what using namespace std; does is make it so you don't need to include std::.

    the above code simplifies to:

    cout<<"blah blah"<<endl;

    not the best explanation but that's all you need to know for now :}

    goodluck.


    edit: goddamnit whit beat me.
    Last edited by Mookamoka; 02-03-2011 at 05:49 PM.

  5. The Following User Says Thank You to Mookamoka For This Useful Post:

    CrypTology- (02-03-2011)

  6. #4
    CrypTology-'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    78
    Reputation
    19
    Thanks
    2
    My Mood
    Bored
    thank you guys
    very helpful
    msn: Dynamis-Kaizer@live.com
    Steam: holyinvoker62






    ~Goals~
    ( ) 50 Posts
    ( ) 200 Posts
    ( ) 300 Posts
    ( ) 500 Posts
    ( ) 1000 posts

    ( )MSG 4 IN combat arms
    ( ) CSM 1 IN combat arms
    ( ) Learn C++
    ( ) Get a girlfriend



    https://www.mpgh.net/forum/2-general/...t-develop.html