1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Introduction to Windows File Management
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
C Pre-Course Workshop Terence Lee QT406 -> PQ607
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
How to Compile Java in Windows. click start then run.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Creating First Class Web Pages Log into your account.
Using Visual C++ and Pelles C
Command Console Tutorial BCIS 3680 Enterprise Programming.
File Management and Organisation © Copyright William Rowan 2007.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 After completing this lesson, you will be able to: View and open folders. Open, edit, and save files. Print files. Sort files. (continued)
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
What is GAMS?.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
IE 411/511: Visual Programming for Industrial Applications
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
1 Working with MS SQL Server Textbook Chapter 14.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Microsoft Visual Basic 2008 CHAPTER TWELVE Cell Phone Applications and Web Services.
Creating Projects in JCreator Computer Science 40S.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Introduction to MVC Introduction NTPCUG Tom Perkins, Ph.D.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Using Visual Studio C++ Express Ron Gross A current copy of this can be found at or this direct linkhttp://tinyurl.com/2ucarothis.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
How to Execute TSR Program. Install Borland C++ Download Borland C++ from LMS – oads/BORLANDC.rarhttp://vulms.vu.edu.pk/Courses/CS609/Downl.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Getting Visual Studio You can download Visual Studio 2015 Community Edition for free from the Microsoft web site.
 CSC 215 : Procedural Programming with C C Compilers.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
CSC 215 : Procedural Programming with C
Chapter 2: The Visual Studio .NET Development Environment
Getting Eclipse for C/C++ Development
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Creating your first C++ program using Visual Studio 2010
Understanding the Visual IDE
1. Open Visual Studio 2008.
Lab 1 Introduction to C++.
Creating Your First C Program Using Visual Studio 2010
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Download and Installation of code::blocks
Creating Your First C Program Using Visual Studio 2010
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Scripts In Matlab.
Getting Eclipse for C/C++ Development
More to Learn Creating a shortcut
Presentation transcript:

1 Getting Started with C++ Part 1 Windows

2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft Visual Studio.

Getting Visual Studio You can download Visual Studio 2015 Community Edition for free from the Microsoft web site. See the class web site for details: 3

4 Start Up Visual Studio

5 Visual Studio Projects A project in Visual Studio is a container for all of the files needed to compile, execute, and debug a program. A solution is a collection of one or more projects. Our solutions will only have a single project. So a solution and a project will be essentially equivalent in this course. Each will hold a single program.

6 Start Up Visual Studio Click

7 Ready to Create a Project Click on the File menu and select New, then Project

Creating Your First C++ Project in Visual Studio When you create your first C++ project after installing Visual Studio, Visual Studio will do some extensive updates. Can take 5 or 10 minutes (maybe more) Click on the File menu and select New, then Project 8

9 Creating Your First C++ Project in Visual Studio

10 Expand the Visual C++ node in the left panel. Then click on Windows. Then select Install Universal Windows Platform... And click OK.

Creating Your First C++ Project in Visual Studio 11 Click Install You will only need to do this once.

Creating Your First C++ Project in Visual Studio 12 Click Continue

Free up disk space if necessary 13

Creating Your First C++ Project in Visual Studio 14

Creating Your First C++ Project in Visual Studio 15 Retry

Creating Your First C++ Project in Visual Studio 16

Creating Your First C++ Project in Visual Studio 17

Creating Your First C++ Project in Visual Studio 18

Creating Your First C++ Project in Visual Studio 19 Click Close

Try Again 20 Restart Visual Studio if necessary

21 Creating a C++ Project in Visual Studio Click

22 Creating a C++ Project in Visual Studio Click

23 Start with an Empty Project Click

24 We Have a Project

25 Adding a Source File to the Project

26 Adding a Source File to the Project Click

27 It's Open in the Editor

28 Add the Program Code Save the file.

29 View the Solution Explore r

30 Solution Explorer Window

31 Compile and Link the Program

The Build was Successful 32

33 Run the Program Click here to build and run

34 Program "hello.cpp" in Action Press "Enter" to end program and close window.

35 Running Without the IDE We can double click here to run the program independently of the IDE. Here is the exe file.

Running Without the IDE 36

Running from the Desktop Drag the hello.exe icon to the desktop. Double click the icon to run the program from the desktop. 37

38 Running Without the IDE We can also run the program from the DOS command line. Copy the exe file into a convenient directory (e.g. C ) Open a command window Click Start and search for cmd cd to the directory Type the command: hello

39 Running from the Command Line

40 Creating a Shortcut

Put the shortcut on the desktop 41

42 Running by Double Clicking Now you can run the program by double clicking the icon on the desktop.