CS2311 - Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.

Slides:



Advertisements
Similar presentations
CSW131 Steven Battilana 1 CSW 131 Free MS Software (MSDNAA) MS Visual Web Developer W3 / Mozilla Code Validators Uploading Your Website Summer 2013 Prepared.
Advertisements

Version Control System (Sub)Version Control (SVN).
1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
CSW131 Steven Battilana 1 CSW 131 Free MS Software (DreamSpark / MSDNAA) MS Visual Web Developer (VWD) W3 / Mozilla Code Validators Uploading Your Website.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
C Pre-Course Workshop Terence Lee QT406 -> PQ607
CS 1400 Using Microsoft Visual Studio 2005 if you don’t have the appropriate appendix.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
Here’s how to start the Microsoft Visual C++ program; click on start, then programsclick on start, then programs Choose Microsoft Visual C++ or Microsoft.
Object Oriented Software Development 1. Introduction to C# and Visual Studio.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
MSDN Academic Alliance Software Center AKA ELMS. Go to click Log In.
Introduction to VB.NET Tonga Institute of Higher Education.
Tutorial 11 Installing, Updating, and Configuring Software
IT 211 Project Integration and Deployment Lab #11.
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.
1 Install FTP for Curriculum Development Professional Development Training.
A1 Visual C++.NET Intro Programming in C++ Computer Science Dept Va Tech August, 2002 © Barnette ND & McQuain WD 1 Quick Introduction The following.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Introduction to C++ Programming Lab1 Estimated time : 35 min.
Install and Setup VC++ and OpenGL Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
Downloading and Installing Autodesk Revit 2016
Project Deployment IT [211 CAP] How to convert your project to a full application.
Programming with Visual C++ A short review of the process.
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
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:
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
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.
LAB#1 CSC st semster H King Saud University College of Applied studies and Community Service Csc 1101.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
Copy of the from the secure website - click on the AccoridaLife.zip link.
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.
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.
Downloading a Visual C compilers (try it yourself at home) Visual Studio 2012 can be found at:
Fix: Windows 10 Error Code 0x in Mail App u/6/b/ /alexwaston14/reimage-system-repair/ /pages/Reimage-Repair-Tool/
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
DEVRY CIS 170 C I L AB 1 OF 7 G ETTING S TARTED Check this A+ tutorial guideline at
Development Environment Setup
NetApp Online Ordering User Tutorial
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Creating your first C++ program using Visual Studio 2010
MSDN Academic Alliance Software Center
HOW TO INSTALL AOL DESKTOP GOLD
Quick Start Guide for Visual Studio 2010
Lab 1 Introduction to C++.
Chapter 1: An Overview of Computers and Programming Languages
1. Open Visual Studio 2008.
ms vısual studıo 2008-Introductıon TUTORIAL
Lab 1 Introduction to C++.
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Summer 2013 Prepared by Prof. B. INDEX
Computer Terms Review from what language did C++ originate?
Presentation transcript:

CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which is quite similar to 2010)

Outline Introduction and installation of Visual studio (VS) Writing, compiling, and executing C++ programs using VS

Working Environment In this course, you will be working with PC under Windows 7 or 8, and all the programs will be written with Visual Studio In this tutorial, you will explore and get familiar with the MS Visual Studio 2012 compiler working environment. Visual Studio 2012 is an integrated developing environment (IDE). Inside the Visual Studio 2012 compiler, you can edit, compile, link, run, debug and manage your programming projects.

Setting up Visual Studio Environment (In CSC Labs) Locate Microsoft Visual Studio 2012 from the WorkDesk icon on Desktop. Visual Studio 2012 professional and Visual Studio 2012 professional ultimate are similar IDE and both of them can be used in this course

Outline Introduction and installation of Visual studio (VS) Writing, compiling, and executing C programs using VS

Steps for writing, compiling and running c programs 1.Create a project and project folder 2.Create a folder for storing programs (source code) 3.Add the source code to project 4.Compile and run the program

Create the project 1.Select File 2.Mouse over New 3.Click Project…

Create a C++ Console Project 2: Select Win32 Console Application 1: Select Visual C++ 4: type a folder name, e.g. tut1 4: uncheck “Create directory for solution” 6: click OK 3: Select the folder where you want the project saved e.g. c:\user\ \documents\Visual Studio 2010\Projects

Customize the project setting click Application Setting

Customize the project setting 1: check Empty project 2: click Finish

Add a C++ program file into the project 1. Right click Source Files 2. Mouse over Add 3. Click New Item…

Add a C++ program file into the project 1: select C++ File(.cpp) 3: click Add 2: enter a file name, e.g. tut1

Writing code The cpp file just created The area for typing project code

Writing code Type the Hello World program

Build (Compile) your program [F7] click Build Solution

Build your program If the program can be built successfully, you will see 1 succeeded here

Execute your program [Ctrl+F5] click Start without Debugging…

Result of Execution

Try it out! Comment this line

Rebuild the project [Ctrl+Alt+F7] This time, click Rebuild Solution because the project has been built before

Got an error message 0 succeeded, 1 failed means the program has problem! No executable is made

If you try to execute it anyway..

You will get an error message

And will not have an expected result

A better way: Locate the error Double click the error message A maker will be placed beside the line that makes program failed to build

Fixed the error Add std:: before cout, it tells the compiler the cout object is defined in std namespace

Rebuild the project: Fixed! It is success this time!

Copy your project out Locate your project (the path may be different if you choice different path in project creation Copy the whole folder into your USB or elsewhere

Reload your project Close it first!

VS without project loaded Click File >> Open

Locate and select your project 1. Select tut1.sln from the project folder you copy before Click Open

Your project is loaded

Work on other program with the same project Within the same project, we can only have one “main” function. If you want to add another program file with function main, exclude the existing one first!

Schedule Introduction and installation of Visual studio (VS) Writing, compiling, and executing C programs using VS

What you have done in this Tutorial Create a Visual Studio 2012 Project Create and add a C program into the project Write a simple Hello World Program Build and Execute the program Locate the syntax error of a program

Downloading a Visual C compilers (try it yourself at home) Visual Studio 2012 can be found at: Login using your student ID as login name and password. Click "MSDNAA Software Center" Select Visual Studio 2012 Professional Edition Add the following items to the shopping cart Visual Studio 2010 Professional Edition DVD Download and run the executable files. Burn the iso files to DVDs (or using software to mount the DVD image). Click setup to install.

You have to ….Trust us Click this

Enter your CS lab account (Check the sent by CS Lab first)

Enter the MSDNAA Software Center Click this

Select Visual Studio Select Developer Tools

Download the Ultimate Version Select Visual Studio 2012 Ultimate

Add VS2012 to shopping cart Click Add to Cart and then check- out