Programming Concepts What we are going to learn in this subject? The basic concepts of writing computer programs commonly known as software
Text Book Title: C++ How to Program, Second Edition Author: H.M. Deital and P.j. Deital Publisher: Prentice Hall
COMPUTER ARCHITECTURE The modern day computer has two major classifications: Hardware Software
HARDWARE H.w is Physical entities of computer: Computer has two types of h.w: Input Devices We give instruction to computer using these devices Keyboard,Mouse,scanners,Mikes,Cameras,sensors etc. Output Devices Monitors,Printers,Speakers etc.
SOFTWARE A sequence of instructions is called a computer program or software Operating systems, games etc These instructions are written in a programming language
COMPUTER ARCHITECTURE IOP CPU INPUTOUTPUT Memory All information and communication is performed inside the computer in the form of 0 and 1(Binary,Digital)
Computer Programming Software development All development is done in some programming language Problem is that computer only understand 0 & 1
PROGRAMMING LANGUAGES The programming languages evolved in following: I. Machine Language II. Assembly Language III. High level languages Procedural Languages Object Oriented Languages
MACHINE LANGUAGE Written in the form of 0 & 1 Computer directly understands Machine Dependent
Assembly Languages Use Naturally understandable symbols called Mnemonics One to one correspondence with machine language Load 5, Load 1, Add Assemblers are used as interpreter
High Level Languages Use naturally understandable language Compilers are used as interpreter IDEs are use for rapid development like.Net environment, Visual Basic and Visual C++
C++ as a Programming Language Extended version of c language C is evolved by Dennis Ritchie C++ is developed by Bjarne Stroustrup
Programming in C++ C++ Code Compiler
Simple Program #include int main() { cout<< Welcome to C++! ; return 0; }