+ 1

Why should we use "using namespace std:"? Is it necessary

In certain books they don't mention about this function

24th Jul 2018, 11:50 AM
Adhyuth Narayan
3 Answers
+ 4
using or not using is of your choice. if you not use using namespace std statement then while using methods of std namespace you have to explicitly define namespace name with scope resolution operator. example: std::cout
24th Jul 2018, 11:53 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 4
You can use them Specifically too like using std::cout; Now you can use cout normally but you have to use cin like std::cin>>value;
25th Jul 2018, 3:32 PM
Shahil Ahmed
Shahil Ahmed - avatar
- 1
Are there any other functions like this in C++
24th Jul 2018, 11:56 AM
Adhyuth Narayan