Posts

Showing posts from November, 2017

DAY 3

Characteristics of C++: C++ is not a purely object-oriented language but a hybrid that contains the functionality of the C programming language. This means that you have all the features that are avail- able in C: ■ universally usable modular programs ■ efficient, close to the machine programming ■ portable programs for various platforms. The large quantities of existing C source code can also be used in C++ programs. C++ supports the concepts of object-oriented programming (or OOP for short), which are: ■ data abstraction, that is, the creation of classes to describe objects ■ data encapsulation for controlled access to object data. ■ inheritance by creating derived classes (including multiple derived classes) ■ polymorphism (Greek for multiform), that is, the implementation of instructions that can have varying effects during program execution. Various language elements were added to C++, such as references, templates, and excep- tion handling. Even though these elements of the l...

DAY 2

Image
Basic structure of c++: The format of writing program in c++ is called its structure. The basic structure of c++ program is very flexible. It increase the power of the language. It consists of the following parts. Preprocessor directive: Its an instruction given to the compiler before the execution of actual program. Preprocessor directive is also known as compiler directive. The preprocessor directives are processed by a program known as preprocessor. Its part of c++ compiler. It modifies c++ source program before compilation. The semi colon is not used at the end of preprocessor directive. The preprocessor directive starts with a hash symbol #. These directives are written at the start of the program. The following preprocessor directive is used to include header files in the program. #include <iostream> The above statement tells the computer to include header file that is " iostream " in source program before compiling it. Header files: Header files a...