< Previous | Contents | Next >
The Game Over 2.0 program produces the exact results of the original Game Over program, illustrated in Figure 1.2. But there’s a difference in the way elements from the std namespace are accessed. You can download the code for
Working with the std Namespace 11
this program from the Course Technology website (www.courseptr.com/down- loads). The program is in the Chapter 1 folder; the filename is game_over2.cpp.
// Game Over 2.0
// Demonstrates a using directive
#include <iostream> using namespace std;
int main()
{
cout << "Game Over!" << endl; return 0;
}