[Help]C++ beginner noob

Posts 1–4 of 4 · Page 1 of 1
[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?
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
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.
thank you guys
very helpful
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?