Tuesday, December 05, 2006 I hear and I forget, I see and I remember, I do and I understand -Chinese Proverb.

Slides:



Advertisements
Similar presentations
C language was developed in early 1970s by Dennis Ritchie at Bell Laboratories to implement the UNIX operating system on the PDP-11 manufactured by DEC.
Advertisements

C++ Introduction.
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Introduction to Programming in C++ John Galletly.
Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Computers and C++ Programming.
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.
Three types of computer languages
Computer Science 117 Intro to C++ 08/26/13. Today Discuss Syllabus Brief History of C++ How to Execute a C++ program. Reading assignment.
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?
Liang, Introduction to C++ Programming, (c) 2007 Pearson Education, Inc. All rights reserved X 1 Chapter 1 Introduction to Computers, Programs,
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
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.
Computer Programming I Hour 1-Getting Started. Word of Day —Chinese proverb A journey of a thousand miles is started by taking the first step. —Aristophanes.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
COMPSCI 174- Introduction to C++ Class hour Section 01: MWF 9:55am – 10:45am. Hyer Hall 210.
Hello World 2 What does all that mean?.
Introduction By: Dr. Javad Razjouyan. Programming Languages.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Introduction of C++ language. C++ Predecessors Early high level languages or programming languages were written to address a particular kind of computing.
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.
Outline  History  What is C++  How does C++ relate to other OO languages  Types of applications for C++  Components of MS’s Visual C  Advantages.
Language C (1) By Randa. Generalities: Types of programmes: -operating system ”système d’exploitation” like Windows XP, Windows 98, Unix, Linux… -programmes.
Introduction to C++ Programming Language
Introduction to Programming Lecture No. 1. Books  Deitel & Deitel :– C++ How to Program  Kernighan and Ritchie:- The C Programming Language.
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.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
CS CS CS IA: Procedural Programming CS IB: Object-Oriented Programming.
C Language: Introduction
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Monday, Jan 6, 2003Kate Gregory with material from Deitel and Deitel CO 204 Object Oriented Programming 2003 Trent University Kate Gregory.
CCSA 221 Programming in C CHAPTER 1 INTRODUCTION ALHANOUF ALAMR.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
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.
12/18/2015 CSI Chapter 1 1 Compiler + Linker = Ready to run code Compiler translates high-level language source code into an intermediate object.
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
Learners Support Publications 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.
Copyright © 2014 Pearson Addison-Wesley. All rights reserved. Chapter 2 C++ Basics.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
CMPT 201 Computer Science II for Engineers
PROGRAMMING WITH C ++.
Foundations of Computer Science C & C++ programming lecture 2
Introduction to Computers and C++ Programming
Introduction to Computers and C++ Programming
Introduction to C Language
LESSON 1 Introduction to Programming Language
Instructor: Chien-Ho Ko
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.
Beginning C++ Programming
CISC/CMPE320 - Prof. McLeod
C++ Programming: From Problem Analysis to Program Design
Computer science By/ Midhat Mohiey. Introduction to Programming using C ++ 2.
Introduction to Computer Programming
Hello World 2 What does all that mean?.
Programming 1 (CS112) Dr. Mohamed Mostafa Zayed 1.
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.
Introduction to Computer Programming
CS IA: Procedural Programming CS IB: Object-Oriented Programming
Review of C++ Language Basics
How can I learn C language?
Computer Terms Review from what language did C++ originate?
COMS 261 Computer Science I
Presentation transcript:

Tuesday, December 05, 2006 I hear and I forget, I see and I remember, I do and I understand -Chinese Proverb

CS 192 / CMPE 191 §First course in programming using C++

§Course Outline §Course Website URL l Information about the course, office hours, contact information, announcements, lecture- slides, tutorials, source code … §\\indus\Common\cs192w06 §Overview of C++ CS192 / CMPE 191 ‘Problem Solving and Computer Programming’

§Make use of office hours.

§Course builds on top of previous discussion. §Don’t hesitate to ask questions in class.

5 minute rule!

What is a program? -

§C++ programming language. High level language

§What does the computer understand?

§What do we need here?

#include int main() { cout<<“Hello\n”; } myprogram.c Type your C++ program into a text file It is human-readable myprogram.exe machine-readable

§Compiler §Source code §Object code

§What happens when you start a program?

C++ l What’s with the name?

§In 1970s l Developed by Dennis Ritchie of AT&T Bell Laboratories l It was first used for writing UNIX operating system §Widely used in programmer community §ANSI (American National Standards Institution) standard C (1983) Some history …

Advantages of C §Built-in power §Efficiency §Flexibility § Library routines

From C to C++ (1980 – Bell Labs) §Reason : Increasing complexity of programs §Bjarne Stroustrup of AT&T Bell Laboratories developed C++ in 1980s. §Most of C is a subset of C++

From C to C++ (1980 – Bell Labs) §High performance system software is constructed using C++ §C++: Enhancement to C

Real programmers language Also it is …

a lot ofFUN!

§Computer Science Fundamentals (CS 111) §Object Oriented Programming (CS 292) §Data Structures (CS 213) §Operating Systems (CS 381)

My assumptions Knowledge of l A text editor l Files l Some experience of using Windows operating system. l General knowledge of what computer hardware / software is.

§Basic C++ Program Structure. §Statements

§Input / Output (I/O)

§Compiler §Linker

#include int main( ) { cout <<"Welcome to CS192/CMPE191"; return 0; }

§Include directives

iostream is the name of library that contains definition of routines that handle input and output. iostream.h is a file that contains information about this library

Welcome to CS192/CMPE191

Comments have two forms in C++ //Single line comments /*Multi-line comments*/ /* comments ignored by compiler */ // comments required by some organizations!