a namespace is a device for limiting name clashes in large projects. You can think of it as a package in which "everything else" is held. Until you get beyond the basics of programming in C++ you don't have to worry about this too much. Once you start working on large projects with several development teams, etc., it is supposed to make life easier. The way it's defined is you have always been working in namespace std, but now you should explicitly declare it.