The longest substring ascending – algorithm
Permalink

The longest substring ascending – algorithm

Base conversion: binary, penta, octal, decimal and hexa
Permalink

Base conversion: binary, penta, octal, decimal and hexa

#include <stdio.h> #include <stdlib.h> #include <conio.h> static char digit_hexa[] = "0123456789ABCDEF"; static char digit_decimal[] =…

Continue Reading →

Tie strings – algorithm
Permalink

Tie strings – algorithm

Check equality of two strings #include <stdio.h> #include <string.h> #define TRUE 1 #define FALSE 0…

Continue Reading →

Input/output with files
Permalink

Input/output with files

C++ provides the following classes to perform output and input of characters to/from files: ofstream:…

Continue Reading →

Preprocessor directives
Permalink

Preprocessor directives

Preprocessor directives are lines included in the code of programs preceded by a hash sign…

Continue Reading →

Exceptions
Permalink

Exceptions

Exceptions provide a way to react to exceptional circumstances (like runtime errors) in programs by…

Continue Reading →

Type conversions
Permalink

Type conversions

Implicit conversion Implicit conversions are automatically performed when a value is copied to a compatible…

Continue Reading →

Polymorphism
Permalink

Polymorphism

Before getting any deeper into this chapter, you should have a proper understanding of pointers…

Continue Reading →

Friendship and inheritance
Permalink

Friendship and inheritance

Friend functions In principle, private and protected members of a class cannot be accessed from…

Continue Reading →

Special members
Permalink

Special members

Special member functions are member functions that are implicitly defined as member of classes under…

Continue Reading →