0

What do u mean by usingnamespacestd

I can't understand this???

23rd Nov 2016, 4:01 PM
rjbiswa
rjbiswa - avatar
1 Antwort
0
using namespace std tells your program to work in the c++ standard library called 'std'. Here is an example: // Code A - with using namespace #include <iostream>; using namespace std; int main() { cout << "Hello World" << endl; } // Code B - without using namespace #include <iostream>; int main() { std::cout << "Hello World" << std::endl; } Both codes print "Hello World" and a linebreak
23rd Nov 2016, 4:32 PM
Andreas K
Andreas K - avatar