The best way would just be to put:

Code:
using namespace std;
Then you havent got to put using std::cout and using std::endl