+ 1

Why we will use using namespace?

23rd Oct 2016, 1:51 AM
chandrika
chandrika - avatar
3 Answers
+ 2
And without namespace Std::cout>>"ghebjsjsn"; Std::cin>>
23rd Oct 2016, 2:19 AM
Kris prototype
Kris prototype - avatar
0
So you dont have to write std every time you use cin or cout or anyother code line. Its pretty much saying that the program will be accessing entities whose name is part of namespace called std.
23rd Oct 2016, 2:17 AM
Kris prototype
Kris prototype - avatar
0
With using namespace std your code will look like this Cout<<"ftgsjhssisbsjisb"; Cin>>ghhsbs;
23rd Oct 2016, 2:18 AM
Kris prototype
Kris prototype - avatar