Importing names individually from a namespace

suggest change

Once using is used to introduce the name cout from the namespace std into the scope of the main function, the std::cout object can be referred to as cout alone.

#include <iostream>
int main() {
    using std::cout;
    cout << "Hello, world!\n";

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents