THE ADVANTAGES OF OBJECT-ORIENTED PROGRAMMING USING C++
Object-oriented programming is a new way of approaching the job of programming. Programming over the years has evolved to accommodate the increased complexity of programs. (1) Structured, easy to understand programming has been around since the late 60's. These advances allowed programmers to write fairly complex programs relatively easy using such languages as C and Pascal. However, once a program reached a certain size it was just too complex to manage. In 1980 at Bell Laboratories in Murray Hill, New Jersey, Bjarne Stroustrup developed a new programming paradigm. (2) His new concept was built on structured programming and incorporated a few new powerful ideas. Some of the more noteworthy include Classes, Polymorphism, overloading, and inheritance.
C itself is a powerful language to begin with. C++ builds on C to make it much easier to deal with very large programs, as well as providing the tools to build black bo
printf("Hello world there are %d days in a week",daysinweek);
This would give the same output as the aforementioned. You can see how larger statements with a multitude of data types can be dealt with much easier using C++.
(1) Herbert Schildt, C++, the complete reference,(McGraw-Hill incorporated, 1995) p250-253