
Keith B. answered 09/22/19
Software Engineer and Math Geek
Adding using namespace std; to your code pulls in all of the that library, even if you're only using one or two items. However, writing std::cout everywhere gets old fast, so you can add using for those elements of the namespace you are going to use:
#include <iostream>
using std::cout;
using std::endl;
int main()
{
cout << "Hello World!" << endl;
return 0;
}