The Standard C++ Library: Generic containers

Container classes are the solution to a specific kind of code reuse problem. They are building blocks used to create object-oriented programs’ they make the internals of a program much easier to construct.   The Standard C++ Library: Generic containers...

Knight’s tour without Graphic

this program is tour of knight on 64 square of chess board C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for...

Multiple inheritance

In order to keep the program as simple as possible, all of the member methods are defined as inline functions.? This puts the code for the methods where it is easy to find and study.? You will also notice that all variables in both classes are declared to be protected...

Runtime type identification (RTTI)

Runtime type identification (RTTI) lets you find the dynamic type of an object when you have only a pointer or a reference to the base type.   Runtime type identification (RTTI) (13.3 KiB, 2,333...

searching and sorting in C++

IN THIS PROJECT I HAVE INCLUDED ALL TYPES OF SEARCHING and SORTING. C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Derived Classes

program, the objects are instantiated from an?inherited class and the intent of this program? is to illustrate that there is nothing magic?about a derived class. C++ /******************************************************* * MYCPLUS Sample Code -...

Address Book

This graphic program can be used to store Personal infromation of people. C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Demonstration of inheritance in C++

Demonstration of inheritance in c++. This example contains the following files. VEHICLE.H VEHICLE.CPP ALLVEHIC.CPP CAR.H CAR.CPP TRANSPORT.CPP TRUCK.H TRUCK.CPP Vehicle.h is a basic class for a vehicle. Car, truck and allvehicle will be inherited from this base class....

The Standard C++ Library: IOStreams

You can do much more with the general I/O problem than just take standard I/O and turn it into a class.The iostreams classes are usually the first part of the C++ library that new C++ programmers learn to use. This chapter discusses how iostreams are an improvement...

Birthday Reminder

This graphics program reminds you of peoples’ birthdays. [code language=cpp]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is...

Miltiple Inheritance

The basic concept of multiple inheritance (MI) sounds simple enough: you create a new type by inheriting from more than one base class. The syntax is exactly what you’d expect, and as long as the inheritance diagrams are simple, MI can be simple as well. Or...
Page 3 of 41234