Use the using keyword : using « Language Basics « C++ Tutorial






#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








1.13.using
1.13.1.Use the using keyword
1.13.2.Use namespace std