Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
CS 1400 Using Microsoft Visual Studio 2005 if you don’t have the appropriate appendix.
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.
A First Program Using C#
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
INTRODUCTION TO C PROGRAMMING LANGUAGE Computer Programming Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
1 INF160 IS Development Environments AUBG, COS dept Lecture 06 Title: Dev Env: Code::Blocks (Extract from Syllabus) Reference:
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - Welcome Application: Introduction to C++
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - HelloWorld Application: Introduction to.
Computing IV Visual C Introduction with OpenCV Example Xinwen Fu.
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.
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
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.
A1 Visual C++.NET Intro Programming in C++ Computer Science Dept Va Tech August, 2002 © Barnette ND & McQuain WD 1 Quick Introduction The following.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Jan. 29, 2008(c) Mike Barnoske Introduction to Runtime Debugging Using the Visual C++ IDE COP 4331: OO Processes for SW Development © Dr. David A. Workman.
Lecture 6: Computer Languages. Programming Environments (IDE) COS120 Software Development Using C++ AUBG, COS dept.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
Programming with Visual C++ A short review of the process.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
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:
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
Programming with Visual Studio.NET A short review of the process.
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.
A first program 1. #include 2. using namespace std; 3. int main() { 4. cout
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
LAB#1 CSC st semster H King Saud University College of Applied studies and Community Service Csc 1101.
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.
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.
Introduction to C++.  Computers: CPU, Memory & Input / Output (IO)  Program: Sequence of instructions for the computer.  Operating system: Program.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
1 Introduction to Object Oriented Programming Chapter 10.
C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo.
1 Structure of Simple C++ Program Chapter 1 09/09/13.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
DEVRY CIS 170 C I L AB 1 OF 7 G ETTING S TARTED Check this A+ tutorial guideline at
Great way to learn is by example so fire up Visual Studios C (at home make sure you custom install with C++ - no longer default) by Deborah R. Fowler.
Computer Terms Review from what language did C++ originate?
COMP 170 – Introduction to Object Oriented Programming
Beginning C++ Programming
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Quick Start Guide for Visual Studio 2010
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Lab 1 Introduction to C++.
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
Chapter 1: An Overview of Computers and Programming Languages
1. Open Visual Studio 2008.
ms vısual studıo 2008-Introductıon TUTORIAL
Welcome to Intro to C/C++ CISC 192
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
Creating the First Program
Computer Terms Review from what language did C++ originate?
COMS 261 Computer Science I
Welcome to Intro to C/C++ CISC 192
Presentation transcript:

Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung and Szeto for sharing their well-prepared PowerPoint

Outline What is an IDE? Microsoft Visual Studio 2003 Dev-C++ Getting familiar with MS Visual Studio Writing your first C++ program Compilation Execution Common Errors

What is an IDE? Integrated Development Environment Usually includes: Editor – where you type in your code Compiler – translates C++ code to executable format Debugger – helps you to locate program errors e.g. Microsoft Visual Studio, Dev-C++

Microsoft Visual Studio Includes Visual C++/C#/Basic…etc. We will only use Visual C++ MS VS2003 available at EE department You can download from Check your EE accounts for login ID and password

Dev-C++ Free download at Complete IDE with editor, compiler and debugger Please refer to online documentation for installation and use of this product

Your first program - Helloworld //This program do nothing except saying hello #include using namespace std; int main() { cout << "Hello, world!" << endl; return 0; }

Launching Visual Studio 2003

Overview Debug and build output View classes, source files here Manage projects, and edit source file Click to open new Project or … …Click here

Creating C/C++ Win32 Console project

Application Settings

Adding a New Item – Method 1

Adding a New Item – Method 2 Click to activate Solution Explorer

Add New C/C++ Source File Item

Type in Program HelloWorld.cpp

Start Compile/ Build/ Debug [F5]

Start Without Debugging [Ctrl-F5]

Compile/ Build Successful

Hello World! [Ctrl-F5] Press any key to close console window

Common Errors (1) 1) This dialog indicate errors in our code 2) Check here for error and line number 3) Missing semicolon!

Common Errors (2) 2) Missing double quote! 1) Check here for error and line number