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
Dostları ilə paylaş: