Running a C++ Application from the Windows Command Prompt

1. Checking your setup. It’s important to read the Before You Begin section at www.deitel.com/books/cpp11fp/ to make sure that you’ve copied the book’s examples to your hard drive correctly.

2. Locating the completed application. Open a Command Prompt window. To change to the directory for the completed GuessNumber application, type cd C:\examples\ch01\GuessNumber\Windows, then press Enter (Fig. 1.7). The command cd is used to change directories.

Image

Fig. 1.7. Opening a Command Prompt window and changing the directory.

3. Running the GuessNumber application. Now that you are in the directory ...

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.