Home > Programming > C Programming Language
Practical C++ Programming Copyright 2003 O'Reilly and Associates Page1
Sort Desciption:Make programming easier. A single high level language could ... The source file is in the C++ language (high level code) while the object ...
Content Inside:Practical C++ Programming Copyright 2003 O'Reilly and Associates Page1Page 1Practical C++ ProgrammingCopyright 2003 O'Reilly and AssociatesPage1Chapter 2The Basics ofProgrammingPage 2Practical C++ ProgrammingCopyright 2003 O'Reilly and AssociatesPage2What is a program?A program is a set of instructions that a computer or someone elsefollows. We have programs in English. But English is a lousy language whenit comes to writing exact instructions. The language is full ofambiguity and imprecision. Grace Hopper the grand old lady ofcomputing once commented on the instructions she found on a bottleof shampoo:Wash Rinse RepeatShe tried to follow the directions but she ran out of shampoo. (WashRinseRepeat. WashRinseRepeat. WashRinseRepeat...)Page 3Practical C++ ProgrammingCopyright 2003 O'Reilly and AssociatesPage3Machine and AssemblyLanguageWhen computers cost millions and programmers cost $15000 a year people programed in machine language:1010 11110011 01110111 0110.. and so for several hundred instructionsLater they devised a translator called an assembler so they could program inassembly language.ProgramTranslationMOV A47 1010 1111ADD AB0011 0111HALT 0111 0110.. and so for several hundred instructionsPage 4Practical C++ ProgrammingCopyright 2003 O'Reilly and AssociatesPage4What an assembler doesNote: The first programmer who wrote a program toassemble code was chewed out because "How dareyou even think of using such an expensive machinefor a mere 'clerical' task."Page 5Practical C++ ProgrammingCopyright 2003 O'Reilly and AssociatesPage5High Level LanguageHigh level languages were developed to:Make programming easier. A single high level language couldgenerate many assembly instructions.For example:generates:MOVE D0 HEIGHTMOVE D1 WIDTHMUL D0D1MOVE AREAD0Make programming machine independent. The idea was to hide thedetails of the machine from the programmer.Allow the programmer to program in a language that was morenatural to him.Page 6Practical C++ Programmin ...
Source: www.oualline.com
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Related Files
Programming in C C++ Java
Filed under: Programming and C Programming LanguageProgramming in C C++ Java. Course Overview. Object oriented programming languages are widely used for the development of complex software systems. ...
C Programming
Filed under: Programming and C Programming LanguageThe C Programming Language ANSI C. By Brian W. C. Kernighan & Dennis M. Ritchie. K and R. "Practical C programming". By Steve ...
An Overview of the C++ Programming Language
Filed under: Programming and C Programming LanguageThe C++ programming language provides a model of memory and computation that ... 3 The C Programming Model presents the C subset of C++ and other C++ ...
C Programming Fundamentals
Filed under: Programming and C Programming Language1 C Programming Fundamentals C is a compiled language. The user creates source code (often ... exe extension). Below is typical C program called LED.C that illustrates some fundamental C ...
Essential C
Filed under: Programming and C Programming LanguageC Programming Language (below) as part of their research at AT&T. Unix and C++ ... The C Programming Language 2nd ed. by Kernighan and Ritchie. ...
