#include <iostream>
// Why don't the following two lines work?:
//using namespace std::cout;
//using namespace std::endl;
usingnamespace std; // the above two lines are not sufficient when this line is commented out
int main()
{
cout << "Hello.";
cout << endl;
cout << "world!" << endl;
return 0;
}
Why aren't those two lines sufficient after comming "using namespace std" without the quotes?
Any input would be greatly appreciated!
Thanks in advance!