What isand should I use it?Code:using namespace std;
Printable View
What isand should I use it?Code:using namespace std;
It makes the namespace for the block that follows...
You can use it like this:
so you don't need to use std::cout, and std::endl; each time in your program...Code:#include <iostream>
using namespace std;
int main()
{
cout << "Hi" << endl;
return 0;
}
Check this out