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?

Slides:



Advertisements
Similar presentations
Module 6: Introduction to C Language ITEI102 Introduction to Programming Structure of C++ Program - Programming Terminologies - Microsoft Visual Studio.
Advertisements

Chapter 1: An Overview of Computers and Programming Languages
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
Programming Basics Aims of Programming: –The aim of programming is to write programs to accomplish complex tasks Programming method: –functional decompositional.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
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.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
CHAPTER 1: INTORDUCTION TO C LANGUAGE
Assembler Compiler Interpreter ASSEMBLER To convert the assembly language into machine code. Translate mnemonic operation codes to their machine language.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
A First Program Using C#
Intro. to Game Programming Want to program a game?
Hello World 2 What does all that mean?.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
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 .
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.
Programming With C.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
Version Control Systems with Subversion (SVN) and Tortoise.
Course Title: Introduction to C++ Course Instructor: ADEEL ANJUM Chapter No: 01 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
COMPUTER PROGRAMMING. A Typical C++ Environment Phases of C++ Programs: 1- Edit 2- Preprocess 3- Compile 4- Link 5- Load 6- Execute Loader Primary Memory.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
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?
CS CS CS IA: Procedural Programming CS IB: Object-Oriented Programming.
Programming with Visual Studio.NET A short review of the process.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
Hardware and Software Programming. COMP104 Lecture 2 / Slide 2 Hardware and Software l Why should we bother with hardware, while we are having a programming.
CS Computer Science I. BCPL was developed in 1967 as a language for writing operating systems and software compilers In 1970, the creators of the.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
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.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
Foundations of Computer Science C & C++ programming lecture 2
Computer Terms Review from what language did C++ originate?
Tools of the Trade
Chapter 1. Introduction to Computers and Programming
Assembler, Compiler, Interpreter
Hello World 2 What does all that mean?.
Chapter 1: An Overview of Computers and Programming Languages
1. Open Visual Studio 2008.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Lab 1 Introduction to C++.
Assembler, Compiler, Interpreter
Your first C and C++ programs
CS IA: Procedural Programming CS IB: Object-Oriented Programming
Programs written in C and C++ can run on many different computers
Computer Terms Review from what language did C++ originate?
Presentation transcript:

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? n what’s natural language, high-level language, machine language n what’s compiler, linker, library? n what’s source/object/executable code? n what are syntax/semantic/stylistic rules? Computer Terms Review 1

The Fundamentals of C++ First programs Development Environment

l Program structure l First programs n hello, world n calculating the area of a rectangle l Microsoft Visual Studio l Subversion Program Organization 3

Program written in human-readable form is called source program - extension -.cpp ( helloworld.cpp ) l compiler is applied to the source program to translate it into form machine understands - we use Microsoft’s Visual C++ compiler (part of Microsoft’s Visual Studio) compiler may produce either object code - direct translation of the source program - extension o. ( helloworld.o ) l compiler (actually linker) adds all other necessary parts for the program to run on a computer and produces executable code l specially produced executables can be traced (more on that later) Programming Cycle 4

// displays a greeting // Mikhail Nesterenko // 8/25/2013 #include using std::cout; using std::endl; int main() { cout << "Hello, World!" << endl; } First Program: helloWorld.cpp preprocessor directive output statement comments function named main() indicates start of program 5

l Microsoft Visual Studio (MSVS) is an integrated development environment (IDE) for writing, debugging, testing and running programs, supports multiple languages l C++ is one of the supported languages l MSVS basic concepts n console application (command line application, Win32) - input/output go to console n project - a set of files that are developed jointly. A project compiles into a single executable n solution – a set of related projects Visual Studio 6

l subversion – version control software used by programmers for team code development. We use for lab submission and grading n has centralized code repository n C++ projects can be: added to repository, checked out and committed n repository is accessible from the web  method to verify submission l TortoiseSVN – subversion client integrated into Windows Explorer Subversion 7