1.10.3. Visual Studio Demonstration

Time: 00:10:50 | Download: Large, Large (CC), Small | Streaming, Streaming (CC)

The video demonstrates creating and running a simple C++ program with Microsoft Visual Studio 2019. It is very similar to a typical classroom demonstration. Other IDEs will be different but have many concepts in common with Studio. The table below lists the significant steps and where the video demonstrates them.

Time Topic
0:00 Introduction
0:51 Visual Studio Opening Window
1:17 Selecting a project template or type
2:02 Configuring the project and solution
4:10 Creating, naming, and editing a program file
5:43 Building/compiling the program
6:25 Running the program
7:10 Finding the program source and executable code
8:23 Finding, opening, and editing a program
VS demonstration video time indexes.
  1. Launch Visual Studio.
  2. Select "File" from the menu at the top of the window.
  3. Select "Add" from the drop-down menu.
  4. Select "New project" from the fly-out menu.
  5. If you see "Empty Project" at the left, select it; otherwise, scroll down the list on the right to "Empty Project" and select it.
  6. Press "Next" button at the bottom of the panel.
  7. Fill in the Project and Solution name and the solution Location.
  8. Press the "Create" button.
  9. Right-click the project name in the Solution Explorer panel.
  10. Select "Add" from the fly-out menu.
  11. Select "New Item" from the next fly-out menu.
  12. Select "C++ File (.cpp)" and enter a name in the "Name" field (do not add the .cpp extension to the name).
  13. Press the "Add" button and write the program in the open text editor.
  14. Save the program by pressing the button decorated with a single floppy disk in the toolbar at the top of the window. Alternatively, type Control-S to save the file.
  15. Select "Build" from the menu to compile the program and select one of the following methods:
    • "Build Solution." Attempts to compile all projects (i.e., programs) in the solution, including any that are incorrect or incomplete.
    • "Build project_name" (where project_name is the name you entered in step 7). This option only compiles the named project or program.
  16. Select "Debug" from the menu and "Start Without Debugging" to run the program.
The steps for creating, compiling, and running a program with VS 2019.