{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

tutorial01(1).pptx - CSCI 1120 Introduction to Computing...

Info iconThis preview shows pages 1–21. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI 1120 Introduction to Computing Using C++ Tutorial 1 LI, Le SHB 1013 [email protected] 1 Sept.12, 2016
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
About… Mr. LI Le ( 李樂 ) Email: lil @cse.cuhk.edu.hk Office: SHB 1013 (10/F, Ho Sin-hang Eng Bld g) Tutorial time Monday, 2:30pm – 3:15pm: ERB 803 (8/F, Will iam M W Mong Eng Bldg) Consultation hour Wednesday, 1:00pm – 3:00pm 2
Background image of page 2
Outline Visual Studio Community Install Visual Studio Community Write our first program Run our program Command Line Interface What is “Command Line Interface” Using “Command Line Interface” in Windows Compile the .cpp file with Command Prompt One Simple Task 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Install Visual Studio Community 2015 Step 1: Download Visual Studio Community 2015 for Windows Desktop ( free ) https://www.visualstudio.com/ 4
Background image of page 4
Install Visual Studio Community Step 2: Install Double Click the downloaded file 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Install Visual Studio Community Step 2: Install Select Custom ( NOT Default ) No C++ if select default Click “Next” 6
Background image of page 6
Install Visual Studio Community Step 2: Install Tick Visual C++ progra mming language Click “Next” Click “Install” (Click “Yes”) Waiting 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Install Visual Studio Community Step 2: Install Click “Restart Now” Restart machine Done 8
Background image of page 8
Using Visual Studio Communi ty 9
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community Start Visual Studio Community 10 Search: Press Win key, then input “visual studio 2015”
Background image of page 10
Using Visual Studio Community 11 Sign in if you have a Microsoft account, or …
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community 12 The main VC interface
Background image of page 12
Using Visual Studio Community VS manages C++ codes in a project-base d manner A project can contain several source files In what follows, we will demonstrate how to create a new empty project how to add source files to the project 13
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community 14 Create a project: File>New>Project. .
Background image of page 14
Using Visual Studio Community 15 "New Project" dialog Step 1: Select “Win32 Console Application” Step 3: Set up where you want to save the project Step 2: Type your project name Step 4: Click OK
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community 16 "New Project" dialog
Background image of page 16
Using Visual Studio Community 17 "New Project" dialog
Background image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community 18 Create a source file to the project Step 1: Right-click “Source Files” Step 2: Select “Add – New Item”
Background image of page 18
Using Visual Studio Community 19 “Add New Item” dialogue Step 1: Select “Code” Step 2: Select “C++ Files” Step 3: Type your file name
Background image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using Visual Studio Community 20 The source code editor interface The editor interface for “HelloWorld.cpp” is now shown.
Background image of page 20
Image of page 21
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}