C++ Program to solve the Quadratic Equation

This program will solve quadratic equations. It accepts coefficients of a quadratic equation from the user i.e. a, b and c and displays the roots. To compile the program name it quadratic_solver.cpp then type g++ -o quadratic_solver quadratic_solver.cpp You may need...

C++ “Hello World” Program

This is a simple “Hello World” C++ program to display “Hello World” text on the screen. Typically, the best way to learn programming is by writing code. The first program beginners write is “Hello World” which is often used to illustrate the syntax of a...

Add time using structures in C++

Write a program having a structure named Time which has three integer data items i.e. hour, minute and second. The task is to add the variables of the Time data type though a function void AddTime(Time *time1, Time *time2) which takes as arguments the addresses of two...

Common Text Transformation Library

Common Text Transformation Library, CTTL for short, is a set of C++ classes and functions to understand and modify text data. The library implementation is based on STL classes and algorithms. The library provides components for creating lexical analyzers making...

C++ Program to demonstrate Inheritance

This is a simple C++ Program to demonstrate Inheritance. Simpler methods in the classes have been changed to inline code to shorten the file considerably. In a practical programming situation, methods that are this short should be programmed inline since the actual...

C++ Program to demonstrate Function Name Overloading

This is a simple C++ Program to demonstrate Function Name Overloading. An example of function name overloading within a C++ class many_name is used in this program. The constructor is overloaded as well as one of the methods to illustrate what can be done in C++...

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,447...

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 -...
Page 1 of 41234