C++ Crash Course: a fast-Paced Introduction


Desktop  Development with C++ Workload



Yüklə 7 Mb.
Pdf görüntüsü
səhifə42/71
tarix20.09.2023
ölçüsü7 Mb.
#145939
1   ...   38   39   40   41   42   43   44   45   ...   71
C Crash Course A Fast-Paced Introduction by Josh Lospinoso

Desktop 
Development with C++ Workload
is selected.
4. Click 
Install
to install Visual Studio 2017 along with MSVC.
5. Click 
Launch
to launch Visual Studio 2017. The entire process might 
take several hours depending on the speed of your machine and your 
selections. Typical installations require 20GB to 50GB.
Set up a new project:
1. Select 
File
4
New
4
Project
.
2. In 
Installed
, click 
Visual C++
and select 
General
. Select 
Empty Project
in the center panel.


Up and Running
7
3. Enter 
hello
as the name of your project. Your window should look like 
Figure 1-1, but the Location will vary depending on your username. 
Click 
OK
.
Figure 1-1: The Visual Studio 2017 New Project wizard
4. In the 
Solution Explorer
pane on the left side of the workspace, right-
click the 
Source Files
folder and select 
Add
4
Existing Item
. See 
Figure 1-2.
Figure 1-2: Adding an existing source file to a Visual Studio 2017 project


8
Chapter 1
5. Select the main.cpp file that you created earlier in Listing 1-1. (Alter-
natively, if you haven’t yet created this file, select 
New Item
instead 
of 
Existing Item
. Name the file main.cpp and type the contents of 
Listing 1-1 into the resulting editor window.)
6. Select 
Build
4
Build Solution
. If any error messages appear in the out-
put box, make sure you’ve typed Listing 1-1 correctly. If you still get 
error messages, read them carefully for hints.
7. Select 

Yüklə 7 Mb.

Dostları ilə paylaş:
1   ...   38   39   40   41   42   43   44   45   ...   71




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin