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