Introduction to C++ Programming Language

Slides:



Advertisements
Similar presentations
C++ Introduction.
Advertisements

EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
In Review JAVA C++ GUIs - Windows Webopedia.com.
Overview of Programming and Problem Solving ROBERT REAVES.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Object Oriented Programming in Java George Mason University Fall 2011
1 Chapter 1 Introduction to Object-Oriented Programming.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems Slides based on work by Sylvia Sorkin, Community College of Baltimore County - Essex.
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Three types of computer languages
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
1 Chapter 1 Overview of Programming and Problem Solving Dale/Weems/Headington Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus.
Introduction to Java.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
1 Author: Nell Dale Chip Weems Mark Headington Published By Higher Education Press Jones and Bartlett Publishers.
Introduction to Java Tonga Institute of Higher Education.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
Programming Design Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
CSE:141 Introduction to Programming Faculty of Computer Science, IBA BS-I (Spring 2010) Lecture 3.
COMPSCI 174- Introduction to C++ Class hour Section 01: MWF 9:55am – 10:45am. Hyer Hall 210.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
CHAPTER 1 Overview of Programming and Problem Solving.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
CSCI 171 Presentation 1. Computer Software System Software –Operating systems –Utility programs –Language compilers Application Software.
CSCI 130 Chapter 1. History of C Bell Telephone Laboratories (1972) Dennis Ritchie (also created UNIX) A - B - C.
Computer Programming I An Introduction to the art and science of programming with C++
1 Overview of Programming and Problem Solving Chapter 1.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
CS CS CS IA: Procedural Programming CS IB: Object-Oriented Programming.
Chapter 1 Overview of Programming and Problem Solving 1.
CT1513 Introduction To java © A.AlOsaimi.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
Introduction to OOP CPS235: Introduction.
1 Overview of Programming Principles of Computers.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to C.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Chapter 1 An Overview of Computers and Programming Languages.
Chapter 1: Introduction to Computers and Programming.
Introduction to computer programming
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
CMPT 201 Computer Science II for Engineers
Visit for more Learning Resources
Programming Language Hierarchy, Phases of a Java Program
LESSON 1 Introduction to Programming Language
Instructor: Chien-Ho Ko
Programming language translators
Presentation transcript:

Introduction to C++ Programming Language Chapter-01 Introduction to C++ Programming Language

C++ History 1972 : Dennis Ritchie at Bell Labs designs C and 90% of UNIX is then written in C Late 70’s : OOP becomes popular Bjarne Stroustrup at Bell Labs adds features to C to form “C with Classes” 1983 : Name C++ first used 1998 : ISO/ANSI standardization of C++

Three C++ Program Stages myprog.cpp myprog.obj myprog.exe SOURCE OBJECT EXECUTABLE written in machine language C++ via compiler via linker other code from libraries, etc.

Translating a source file into an executable file Source Code is entered with a text editor by the programmer. Source Code Preprocessor #include <iostream.h> void main(void) { cout<<“Hello World”; } Modified Source Code Compiler Object Code for other functions Object Code Linker Translating a source file into an executable file Executable Code

Running a Program Output Program Data Computer

C++ Program Translation Data for C++ Program Compile Execute C++ Compiler Machine-Language Instructions Computer Execution of Machine-Language Instructions Output of C++ Program

C++ Program Translation Including Linker Previously Compiled Helper Programs Data for C++ Program C++ Compiler Computer Machine-Language Instructions Linker Computer Execution of Machine-Language Instructions Output of C++ Program

Java Programming Language achieves portability by using both a compiler and an interpreter first, a Java compiler translates a Java program into an intermediate bytecode--not machine language then, an interpreter program called the Java Virtual Machine (JVM) translates a single instruction in the bytecode program to machine language and immediately runs it, one at a time

Java Program Translation Both Compilation and Interpretation Intermediate Code: “Byte Code” portable low-level code similar to assembly code, but hardware independent invisible to Java programmer Interpreter translates from generic byte code to hardware-specific machine code Java Program Data for Java Program Java Compiler Java Virtual Machine Byte-Code Program Byte-Code Interpreter Machine-Language Instructions Computer Execution of Machine-Language Instructions Output of Java Program

Java Program Translation Including Linker Previously Compiled Helper Programs Data for Java Program Java Compiler Java Virtual Machine Byte-Code Program Byte-Code Interpreter Machine-Language Instructions Linker Computer Execution of Machine-Language Instructions Output of Java Program

Learning C++ There are two pieces to learning the C++ world. First, is learning the C++ language itself. Second, is learning how to use the classes and functions in the C++ standard library.

Procedural and Object-Oriented Programming Procedural programming and object-oriented programming are two ways of thinking about software development and program design.