0
What do u mean by usingnamespacestd
I can't understand this???
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