0

Difine #include <<iostream>>

quick responce

18th Nov 2016, 9:40 AM
Shafiq Khan
Shafiq Khan - avatar
2 Antworten
+ 2
The built in C++ library routines are kept in the standard namespace. That includes stuff like cout, cin, string, vector, map, etc. Because these tools are used so commonly, it's popular to add "using namespace std" at the top of your source code so that you won't have to type the std:: prefix constantly
18th Nov 2016, 10:13 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
Firstly it is called define. I'm sorry sometimes I'm a GrammarNazi (while living in Germany...coincidence? 🤔) Well back to the topic With #include you tell your c/c++ program that it should load some additional files. in this particular case if you don't include iostream (in C stdio.h) you won't able to print anything on your console or getting input from your keyboard or file etc. In order to work properly with comandline outputs and inputs it is essential to add this line of code. There are lots of different files which can be included with different functions for different purposes. You have also the possibility to include header files by #include
18th Nov 2016, 9:56 AM
Arsal Ali
Arsal Ali - avatar