C++ Tutorial/Language Basics/using
Use namespace std
#include <iostream>
int main()
{
using namespace std;
cout << "a new line ";
cout << endl;
return 0;
}
a new line
Use the using keyword
#include <iostream>
int main()
{
using std::cout;
using std::endl;
cout << "Here is 5: " << 5 << "\n";
cout << 8+5 << endl;
return 0;
}
Here is 5: 5 13