Posts

C++ PROGRAM STRUCTURE

  C++ PROGRAM STRUCTURE Programs is a sequence of instructions or statements are known as programs. These statements are used to form the structure of a C++ program.  C++ programming also provide the flexibility of writing a program with or without a class and its member function definitions. The C++ program structure is divided into two types. (i)    Program structure with class C++ headers (Include files) Class declaration Member function definition (class function definition) Main function Explanation: 1.       C++ headers *   It contains the information like prototype, definition and library function. *   Standard headers are specified in a program through preprocessor directive “# include”. 2.         Class declaration             Used to declare the class with member Data and functions. 3.     ...