why do you need to write using namespace std in c++ code example
Example: using namespace std in c++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
system("pause");
return 0;
}
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World";
system("pause");
return 0;
}