Setup instructions for the C++ Shapes project

This project takes approximately 2 minutes to configure. Before you can run the sample, you must first install an external C/C++ compiler.

About this task

To configure and run the sample:

Procedure

  1. In the C/C++ Projects Explorer view, expand the Shapes project, and double-click main.cpp.
  2. Click Run > Open Run Dialog.
  3. In the Run window, from the Configurations list, double-click C/C++ Local Application.
  4. In the Name field, type Shapes.
  5. In the C/C++ Application field, click Search Project.
  6. In the Program Selection window, double-click Shapes.exe.
  7. In the Run window, click Run.

Results

The program displays the size, color, surface area, and volume of the specified shape in the Console view and prompts you to specify values for the new shape instance.

Feedback