22-09-2012, 05:15 PM
Programming with ANSI C ++
1Programming with.ppt (Size: 101 KB / Downloads: 26)
The strength of C
very powerful and proven.
survived for more then two decades
efficient and compact programs
C programs executables produce most compact object code
C is being used in small and medium size programs to a great extent.
There is a large class of programmers just know one language, The C.
Operating systems like Linux and Windows, Databases like Oracle, Network programs like TCP/IP all of them have large (if not all!) part of them written in C. (Though significant part of them is written in C++ as well
Limitations of C
Problems are apparent while attempting large programs
Very large C programs loose a ‘Global View’
Very difficult to remember every part of the program
Problem with the design
Problem with the inability of the language to express
Intermediate solution is to make the program modular
Modules are not totally independent
Efficient teamwork is impossible without global vision
The Remedy
Ability to have a global view using abstractions
Relieved from the burden of handling a large program
View as a program with few abstractions
Can view the entire program together
Can properly reason if a part of it to be debugged and modified.
Solution in the design
We may need to add new features in the programming language (here the C) to suit very large programs (which C++ does).
We may even require changing the style of programming (which C++ does not do, we have to do it)