C++ Archive

How to work with ANSI preprocessor Directives

The ANSI committee has added some more preprocessor directives to the existing list. They are: #elif   Directive The #elif directive enables us to establish an “if…else…if” sequence for testing multiple conditions. The syntax is as shown below: 1 2 3 4 5 …

How to work with File Inclusion Directives

The external files containing functions or macro definitions can be linked with our program so that there is no need to write the functions and macro definitions again. This can be achieved by using the #include directive. The syntax for this directive …

What are stream classes in C++ Programming

C++ provides several classes to work with stream based I/O. Such classes are known as stream classes and they are arranged in a hierarchy shown below: All these classes are declared in iostream.h header file. So, we have to include this header …

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger