Exception handling constructs: –

Exception handling constructs: - An exception handling mechanism transfers control and information from a point of exception in a program to an exception handler associated with the try-block. An exception handler will be invoked only by a thrown expression in the code executed by the handler’s try-block or by functions called from the handler’s try-block. … Continue reading Exception handling constructs: –


Exception handling: –

Exception handling: - The increase in complexity and size of software system and the increase in society’s dependence on the computer system have been accomplished by an increase in the cost associated with their failure. The rising cost of failure in a computer system has stimulated interest in improving software reliability. The two main techniques … Continue reading Exception handling: –

Write and read function: –

Write and read function: - At the user end, generally the values are represented in ASCII, whereas, inside the machine there are binary equivalent are used. In sorted case, it is not necessary to store information in the form ASCII character. For instance, in a database application storing and integer in binary form instead of … Continue reading Write and read function: –

Function for manipulation of file pointer: –

Function for manipulation of file pointer: - The C++ I/O system support for function for setting a file pointer to any desired position inside the file or to get the file pointer. These allow the programmer to have control over a pointer in the file where read or write operation text place. These for function … Continue reading Function for manipulation of file pointer: –

File pointer and there manipulator: –

File pointer and there manipulator: - The knowledge of the logical operation at which the current read or write operation occur is of great importance in achieving faster access to information stored in a file. The file management system associates to pointers with each file, called pointer. In C++, they are called get pointer and … Continue reading File pointer and there manipulator: –

File modes: –

File modes: - A constructor ifstream and function open() are used to create files as well as open the existing files in the default text mode. In both method, only arguments used is the file name. C++ provides a mechanism of opening a file in different mode in which case the second parameter must be … Continue reading File modes: –

Opening and closing files: –

Opening and closing files: - In order to process a file, it must be opened to get a handle. The file handle service as a pointer to the file. Typically, manipulation of a file involved flowing step. Name the on the disk. Open the file to get the file pointer. Process the file for reading … Continue reading Opening and closing files: –

Hierarchy of file stream class: –

Hierarchy of file stream class: - The file handling technique in C++ support file manipulation in the form of stream object. The stream object are cin and cout which are predefine in iostream.h header file. For file stream, three different classes can be used in C++ program. These classes are used inform of header files. … Continue reading Hierarchy of file stream class: –

Stream computation with file: –

Stream computation with file: - A computer system stores programs and data in secondary storage in the form of file. Storing program and data permanently in main memory is not preferred due to two main resin. Main memory is usually two small to permanently store all the needed programs and data. Main memory is a … Continue reading Stream computation with file: –

Template: –

Template: - A significant benefit of object oriented programming is reusability of code which elements redundant coding. An important feature of C++ called templates strengths this benefits of Object oriented programming (OOP) and provide grate flexibility to the language. Template support generic programming, which allows to develop reusable software components such as function, class, etc., … Continue reading Template: –