Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.

Slides:



Advertisements
Similar presentations
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1
Advertisements

SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
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?
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.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
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.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to C Programming
C programming Language and Data Structure For DIT Students.
Introduction to C language
CHAPTER 1: INTORDUCTION TO C LANGUAGE
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction 01_intro.ppt
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Programming Languages: Telling the Computers What to Do Chapter 16.
A First Program Using C#
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
Basics of “C” Programming
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Introduction to Interactive Media Interactive Media Tools: Software.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice:
Introduction to C++ Programming Language
Visual C++ Programming: Concepts and Projects
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
CS-303 Introduction to Programming
CHAPTER 1: Introduction to Computers and Programming CSEB113 PRINCIPLES of PROGRAMMING CSEB134 PROGRAMMING I by Badariah Solemon 1BS (May 2012)
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Course Instructor: Hira Farman Course : BY:HIRA FARMAN.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Preston University, Islamabad Campus
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.
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.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 1: Introduction to Computers and Programming.
Introduction to computer programming
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Topic 2: Hardware and Software
Chapter 5- Assembling , Linking, and Executing Programs
CSCI-235 Micro-Computer Applications
System Programming and administration
Instructor: Chien-Ho Ko
and Executing Programs
System Programming By Prof.Naveed Zishan.
Presentation transcript:

Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1

What Is Programme? Programming In C++, Lecture 1

What Is Language? Programming In C++, Lecture 1

Write A Short Programme. Programming In C++, Lecture 1 How you drink water?

Programming In C++, Lecture 1 Computer Programming Low Level Programming High Level Programming A programming language is a communicate instructions to a computer. Programming languages can be used to create programs that control the behaviour of a machine and/or to express algorithms precisely. Programming languages fall into two categories:

Programming In C++, Lecture 1 Computer Programming Low Level Programming Low-level languages are considered to be closer to computers. Its prime function is to operate, manage and manipulate the computing hardware and components. Low Level Languages are: 1.Machine Languages 2.Assembly Languages

Programming In C++, Lecture 1 Computer Programming High Level Programming Higher-level languages allow the programmer to work in a more English-like environment that resembles natural language or mathematical notation also visual environment, using graphical tools. Procedural Programming Object Oriented Programming

Programming In C++, Lecture 1 Computer Programming High Level Programming Procedural Languages A computer programming language that executes a set of commands in order is called procedural Language. It is written as a list of instructions, telling the computer, step-by-step, what to do. For Example. 1.Open a file 2.Read a number 3.Multiply by 4 4.Display something. Procedural programming is fine for small projects. It is the most natural way to tell a computer what to do.

Programming In C++, Lecture 1 Computer Programming High Level Programming Object Oriented Programming

Programming In C++, Lecture 1 Computer Programming High Level Programming Web Development (HTML, PHP, JSP, ASP etc.) Application Development (Java, C, C++,.net etc.) Mobile Application (Objective C, J2ME etc.) Data Base (SQL, SQL Plus)

Programming In C++, Lecture 1 Computer Programming Quiz What is your Lecturer’s Name & his qualification? Which Language is close to computer hardware? What is Database language? Which level of programming language is close to human? Which programming language will you cover in this course?

Programming In C++, Lecture 1 What Is C Programming Language?

Programming In C++, Lecture 1 Introduction To C Programming Language Book “Turbo C Programming for PC and Turbo C++” By Robert Lafore,

Programming In C++, Lecture 1 Introduction To C Programming Language n The C programming language was designed by Dennis Ritchie at Bell Laboratories in the early 1970s n Traditionally used for systems programming, though this may be changing in favor of C++ n C Language in between the Low Level Language and High Level Language (Middle Level Language)

Programming In C++, Lecture 1 C Mainly Used For n Mainly because it produces code that runs nearly as fast as code written in assembly language. Some examples of the use of C might be: –Operating Systems –Language Compilers –Assemblers –Text Editors –Print Spoolers –Network Drivers –Modern Programs –Data Bases –Language Interpreters –Utilities

Programming In C++, Lecture 1 What We Need n PC Hardware n Ms-Dos n Turbo C Development System (Integrated Development System (IDE))

Programming In C++, Lecture 1 Turbo C Development System It is a screen display with windows and pull down menus. The program listing, its output, error messages and other information are displayed in separate windows. You can use menu selections to invoke all the operations necessary to develop your program including editing, compiling, debugging, Linking and program execution.

Programming In C++, Lecture 1 Basics of C Environment n C systems consist of 3 parts –Environment –Language –C Standard Library n Development environment has 6 phases –Editing: Writing the source code by using some IDE or editor –Pre-processor: Already available routines –Compile: translates or converts source to object code for a specific platform –Link: resolves external references and produces the executable module –Load: load into memory –Execute : Run the program

Programming In C++, Lecture 1 Basics of C Environment Compiling Program are in two versions 1.You type which is called the source file. 2.Machine-Language version, which is called executable file The Complier, which is a part of the IDE, translates this source code into another file, consisting of machine language at once. The Interpreter, which is a part of the IDE, translates this source code into another file, consisting of machine language but line by line.

Programming In C++, Lecture 1 Basics of C Environment Linking Execute new compiler-generated file to run your program. The Linker combines all the required files into a single executable file.

Programming In C++, Lecture 1 Basics of C Environment Errors Syntax Error Logical Error

Programming In C++, Lecture 1 Files Used in C Program Development Executable Files Library & Runtime Files Header Files Programmer-Generated Files

Programming In C++, Lecture 1 Files Used in C Program Development Executable files are stored in the subdirectory BIN. The most important executable file for the Turbo C Language is the TC.EXE. Executable this program places the IDE on your screen. The BIN directory also contains programs for the command line development process. For example. TCCCommand-line compiler TLINKCommand-line linker TCINSTCustomize Turbo IDE CPPPre-processor Utility TLIBLibrary file manager MAKEFile management program Executable Files

Programming In C++, Lecture 1 Files Used in C Program Development Various files are combined with your programs during linking. These files contain routines for a wide variety of purposes. They are stored in LIB subdirectory. Library & Runtime Files

Programming In C++, Lecture 1 Files Used in C Program Development Library files are group of precompiled routines for performing specific tasks. A library files has a unique characteristic: only those parts of it that are necessary will be linked to a program, not the whole file. Library Files

Programming In C++, Lecture 1 Files Used in C Program Development The subdirectory called INCLUDE contains header files. These files are text files, like the one you generate with a word processor or the Turbo C editor. Header files can be combined with your program before it is complied, in the same way that a programmer can insert a standard heading in a business letter. Each header file has a “.h” file extension Header Files

Programming In C++, Lecture 1 Files Used in C Program Development You can place the programs that you write in any subdirectory you choose: for instance a subdirectory under TC. Programmer-Generated Files

Programming In C++, Lecture 1 Introduction To C Programming Language What we need to develop C programme? What is difference between Complier & interpreter? What is Linker? What is source file & Executable file? How many type or error could have? What is Header files? What is Library files? Quiz