why when i use string in c++ i need to write using namespace std ? 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;
}