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
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
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
CrypTology- (02-03-2011)
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.
CrypTology- (02-03-2011)
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