C and C++ Programming Resources

Custom Search

C++ Source Code

Add time using structures in C++

Posted on July 23rd, 2011 0 Comments

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 Time type variables, adds these variables and stores the result in time2. The function must...
Read More | Make a Comment

Common Text Transformation Library

Posted on August 22nd, 2009 0 Comments

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 practical use of EBNF grammars. Template meta-programming and operator overloading offer features...
Read More | Make a Comment

Inheritance example

Posted on October 17th, 2008 0 Comments

Inheritance example
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 code to return a simple value is shorter than the code required to send a message to a non-inline method. /******************************************************* *...
Read More | Make a Comment

Function name overloading

Posted on October 14th, 2008 0 Comments

Function name overloading
An example of function name overloading within a C++ class. In this program the constructor is overloaded as well as one of the methods to illustrate what can be done in C++ programming language. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * ...
Read More | Make a Comment

Miltiple Inheritance

Posted on September 9th, 2008 0 Comments

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 maybe not! MI can introduce a number of ambiguities and strange situations, which are covered in...
Read More | Make a Comment

Message Digest Utility

Posted on September 9th, 2008 0 Comments

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 the .exe include all the file in VC++ 6.0 , compile Main.cpp and build the .exe file, exclude...
Read More | Make a Comment

Queue Implementation With Inheritance and Polymorphism

Posted on September 9th, 2008 0 Comments

With Inheritance and Polymorphism (Late Binding) /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration....
Read More | Make a Comment

SWAT GAME

Posted on September 9th, 2008 0 Comments

SWAT GAME /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * * purpose of illustration. * * ...
Read More | Make a Comment


Page 1 of 6123456