0
using namespace std; is for?
6 Respostas
+ 1
To not have to put std:: in front of every element from the standard libraries, for example std::cout.
+ 1
It's to use the shorthand of the namespace
0
this means that the spaces are standard
0
but when I'm using turbo c++, the program works just fine without "using namespace std;"
why is that? I don't place std:: in front of every element
0
it's like Zen said: withou it you must write std::cout, with it you just write cout
0
its actually standard c library which contain different kind of standard functions..