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

Info icon This 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
Image of page 1

Info icon This 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
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
Image of page 3

Info icon This 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 ) 4
Image of page 4
Install Visual Studio Community Step 2: Install Double Click the downloaded file 5
Image of page 5

Info icon This 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
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
Image of page 7

Info icon This 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
Image of page 8
Using Visual Studio Communi ty 9
Image of page 9

Info icon This 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”
Image of page 10
Using Visual Studio Community 11 Sign in if you have a Microsoft account, or …
Image of page 11

Info icon This 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
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
Image of page 13

Info icon This 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. .
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
Image of page 15

Info icon This 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
Image of page 16
Using Visual Studio Community 17 "New Project" dialog
Image of page 17

Info icon This 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”
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
Image of page 19

Info icon This 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.
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern