C + 1 == C++ ce153c Introduction2programming © 2006 NematAllah Ahmadyan.

Slides:



Advertisements
Similar presentations
Lecture Computer Science I - Martin Hardwick Strings #include using namespace std; int main () { string word; cout
Advertisements

Review for Final Exam Chapters 1–20 (Programming and C++ in 75 minutes) Bjarne Stroustrup Ronnie Ward 1Stroustrup/PPP -
Chapter 19 Standard Template Library. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Learning Objectives Iterators Constant and mutable.
C++ Crash Course For CS184 Sp08 Trevor Standley. C++ Is ~(C+Java)/2 Comprises a combination of both high level and low level language features Developed.
C++ Language Fundamentals. 2 Contents 1. Introduction to C++ 2. Basic syntax rules 3. Declaring and using variables.
Computer Science 1620 Math Library. Remember this program? suppose that I invest $25000 into a mutual fund that returns 8% per year. Write a program to.
Introduction to C++ Programming. Brief Facts About C++ Evolved from C Designed and implemented by Bjarne Stroustrup at the Bell Labs in the early 1980s.
Vectors, lists and queues
Introduction to Programming in C++ John Galletly.
Visual Programming by Muhammad Bilal Zafar (AP).
Programming II - Part 1 – Object Oriented Programming with Java Sebastian Uchitel
Rossella Lau Lecture 1, DCO10105, Semester B, DCO10105 Object-Oriented Programming and Design  Lecture 1: Introduction What this course is about:
Basic C++ lectures 1 and 2MSc Bioinformatics Basic C++
CS1061: C Programming Lecture 22: A Brief Look at C++ A. O’Riordan, 2004.
Getting Started Applications of Computer Programming in Earth Sciences Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National.
General Computer Science for Engineers CISC 106 Lecture 26 Dr. John Cavazos Computer and Information Sciences 04/24/2009.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
EC-241 OBJECT-ORIENTED PROGRAMMING (OOP)
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
C++
Computer Programming I An Introduction to the art and science of programming with C++
Object Oriented Programming Elhanan Borenstein copyrights © Elhanan Borenstein.
CSC1201: Programming Language 2 Lecture 1 Level 2 Course Nouf Aljaffan Snd Term Nouf Aljaffan (C) CSC 1201 Course at KSU1.
Rossella Lau Lecture 1, DCO10105, Semester B, DCO10105 Object-Oriented Programming and Design  Lecture 1: Introduction What this course is about:
Current Assignments Homework 3 is due tonight. Iteration and basic functions. Exam 1 on Monday.
Subject: Programming in C++ 1. LEARNING OUTCOME  At the end of this slide, student able to:  Know the brief history of C++.  Explore Microsoft Visual.
C++ History C++ was designed at AT&T Bell Labs by Bjarne Stroustrup in the early 80's Based on the ‘C’ programming language C++ language standardised in.
1 Object-Oriented Programming Using C++ CLASS 1. 2 Review of Syllabus Catalog Description –An introduction to object oriented programming techniques using.
Department of Computer Science 1 Programs In this class we will program in C++ & We will use Microsoft Visual Studio 2010.
Object Oriented Programming (FIT-II) J. H. Wang Feb. 20, 2009.
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
C ++ Basics by Bindra Shrestha sce.uhcl.edu/shresthab CSCI 3333 Data Structures.
CSC1201: PROGRAMMING LANGUAGE 2 Aseel Al Hadlaq 2nd Term
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang.
Monday, Mar 31, 2003Kate Gregory with material from Deitel and Deitel Week 12 Labs 4 and 5 are back File IO Looking ahead to the final.
Monday, Jan 6, 2003Kate Gregory with material from Deitel and Deitel CO 204 Object Oriented Programming 2003 Trent University Kate Gregory.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
CS 11 C++ track: lecture 1 Administrivia Need a CS cluster account sysadmin/account_request.cgi Need to know UNIX (Linux)
Lecture 19 CIS 208 Wednesday, April 06, Welcome to C++ Basic program style and I/O Class Creation Templates.
Lecture 7: Making Decisions Professor: Dr. Miguel Alonso Jr. Fall 2008 CGS2423/COP1220.
Object Oriented Programming (FIT-II) J. H. Wang Jan. 31, 2008.
EE4E. C++ Programming Introduction. Contents Why C++ Why C++ Course contents Course contents Assessment Assessment Resources Resources.
Lecture 4 Function example. Example1 int max (int a, int b) { int c; if (a > b) c = a; else c = b; return (c); } void main ( ) {int x, y; cin>>x>>y; cout.
Introducing C++ to Java Programmers by Kip Irvine updated 2/27/2003.
1 CSE Programming in C++. 2 Overview Sign roster list Syllabus and Course Policies Introduction to C++ About Lab 1 Fill Questionnaire.
Course Title Object Oriented Programming with C++ instructor ADEEL ANJUM Chapter No: 03 Conditional statement 1 BY ADEEL ANJUM (MSc-cs, CCNA,WEB DEVELOPER)
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
DEF & FACTS! C + 1 = C++ C & C++ ARE MIDDLE LEVEL LANGUAGES INTRODUCTION BRIEF REVIEW OF C NEED OF C++ © arbit club cu 2010.
Object-Oriented Programming (OOP) and C++
Week 13 - Friday.  What did we talk about last time?  Server communications on a socket  Function pointers.
Introduction to Programming
CSE202 Object Oriented Programing
Object Oriented Programming Development
Intro to Programming Week # 6 Repetition Structure Lecture # 10
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
CISC/CMPE320 - Prof. McLeod
Generic Programming Techniques in C++
جامعة البحر الاحمر كلية العلوم التطبيقية قسم الفيزياء التطبيقية الفصل الداسي الثاني IIالمقرر: حاسوب د. خالد عثمان العالم.
(5 - 1) Object-Oriented Programming (OOP) and C++
Random Number Generation
Starting Out with C++: From Control Structures through Objects
جامعة البحر الاحمر كلية العلوم التطبيقية قسمي الحاسوب وتقنية المعلومات الفصل الداسي الثاني المقرر: اساليب برمجة 1 محاضرة رقم 1 د. خالد عثمان العالم.
Strings and Streams Professor Hugh C. Lauer CS-2303, System Programming Concepts (Slides include materials from The C Programming Language, 2nd edition,
Introduction to C++ Introduced by Bjarne Stroustrup of AT&T’s Bell Laboratories in mid-1980’s Based on C C++ extended C to support object-oriented programming.
(5 - 1) Object-Oriented Programming (OOP) and C++
CSE Object Oriented Programing
Mr. Dave Clausen La Cañada High School
Let’s all Repeat Together
Presentation transcript:

C + 1 == C++ ce153c Introduction2programming © 2006 NematAllah Ahmadyan.

History C was designed by Ritchi, Tompson, Kernighan It was fast, good & powerful but program’s maintance was a nightmare! Solution:... Object-Oriented Programming

C++

Object-Oriented Polymorphism Inheritance Encapsulation Data Abstraction Operator overloading STL { Standard Template Library } Templates streams Don’t Panic, They’ll become clear later!

What is C++ ? “C++ is a general purpose programming language with a bias towards systems programming that is a better C, supports data abstraction, supports object oriented programming, and supports generic programming.” By Bjarne Stroustrup

Hello, World & #include 2. #include 3. #include 4. using namespace std; 5. int main(){ 6. cout << “Hello,World” << endl ; 7. int x = sin(6.28); 8. cout << fixed << setprecision(5) << M_PI ; 9. cout << scientific << x<< endl ; 10. return 0 ; }

Another piece of cake! int x = 0, y = 1; 3. cin >> x ; 4. if ( x == 1 ){ 5. y = f(3); 6. }else{ 7. y = f(5); } 1. int f(int x){ 2. return x%2 ; } C++ is very similar to C C is a mother nature! To all other language. C++, Java even Matlab!

Further readings A Brief Look at C++ Paper by Bjarne Stroustrup Addison Wesley - C++ Common Knowledge Advance Programming [Java] course ce244 Lecturer: Ramtin Khosravi Ph.D Object-Oriented Programming

Books/Ebooks K&R C  Kernighan,Ritchie [ designers of C ] The C++ Programming Language 3 rd Ed. Bjarne Stroustrup [ designer of C++ ] C Primer / C++ Primer C++ FAQ/ C++ FAQ Lite Dietel & Dietel C/C++/VC++/.NET How to program series Thinking in C++ Vol 1&2 Effective C++ Vol 1&2 McGraw-Hill - C & C++ Programmers Reference Ansi/ISO C++ Numerical Recipes in C [ cambridge ] Scientific Calculation [ MathLab ] [ math department ]