It's programming time!/C++/include iostream

From Create Your Own Story

< It's programming time! | C++
Revision as of 06:38, 30 June 2016 by DirtyMeStoryTime (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
#include <iostream>

Okay, this has two parts:

#include
<iostream>

The first one, #include, does exactly like it sounds. It includes something. So, when the program is made (compiled), it will say "Hey, put this thing in the program, since it tells the program what to do". Easy, yes?

Maybe not. No worries. Just remember, it includes something additional, that is not written in your normal code. Of course, the # is actually called a preprocessor directive, and even I had to look that up. It says to process something before. Anyways, confusing, I know. I won't worry about that now, but may dive into it in another page. If you want to see a list of all the standard preprocessor directives, you can check The list of preprocessor directives! Exciting, I know.

Anyways, in this case, this line includes:

<iostream>

Now, the stuff in the < and >

Personal tools