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++...

Message Digest Utility

This is a special console based utility which will calculate the Message Digest, Base 64 Encoding and Decoding, Checks the Message Digest and give output through file or through screen you can use this class to make the dll. Help is included in the main.cpp creating...

Simple class program

Simple class program C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. * * * *...

Queue Implementation With Inheritance and Polymorphism

With Inheritance and Polymorphism (Late Binding) C++ /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * *...

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

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