Actually, it's usually a better idea NOT to use usingnamespace std;. Namespaces are to prevent redefinition errors, as is explained here: http://cplusplus.com/doc/tutorial/namespaces/
When you're not calling stuff from any other namespaces, it saves typing.