+ 1

c++

what is the use of: using namespace std; ?? which we didn't use in dev or turbo c++ and the program run well.

11th Oct 2017, 2:50 PM
Sarah
3 Answers
+ 3
This is the namespace which qualify the function which you want to call. Simply sad you can avoid the function collission if they have the same name. If some package/module contain the same function name you can qualify from which function you want to call (from which package/module).Withou the namespace you need to full qualify the function name.For example insted of mystd.display("someone") you can use only display in the code if you use using namespace mystd. Your module mynamespace needs to be marked as namespace mystd.
11th Oct 2017, 3:37 PM
Highman
Highman - avatar
+ 1
not for all compilar it run succesful beacouse in it app code going to internet and auto-compiler debug some mistakes
11th Oct 2017, 3:36 PM
Uefair
Uefair - avatar