#include <iostream> using namespace std; what is use ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

#include <iostream> using namespace std; what is use ?

5th Oct 2020, 7:21 AM
Ganesh Nanaso Rupnawar
2 Answers
0
If you mean to ask what is a namespace then; https://www.w3schools.in/cplusplus-tutorial/namespace/ https://en.cppreference.com/w/cpp/language/namespace If you mean to ask what and/or why to use `namespace std;` then you need to use the search bar, because many had asked that topic.
5th Oct 2020, 7:41 AM
Ipang
0
You can replace it by std::cout; std::cin; to use cout and cin functions because they are defined in this scope of namespace std in the iostream.h file.Without including it you can not use cout ...
5th Oct 2020, 10:18 AM
HBhZ_C
HBhZ_C - avatar