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 Time type variables, adds these variables and stores the result […]

By |C++ Source Code|0 Comments

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 practical use of EBNF grammars. Template meta-programming and operator overloading offer features to write expressions that […]

By |C++ Source Code|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.

/*******************************************************
* […]

By |C++ Source Code|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 *
* […]

By |C++ Source Code|0 Comments

Car Race Game

You have to reach the finish line before the time goes out. There are many hurdles in your way.

So be careful.
/*******************************************************
* MYCPLUS Sample Code – http://www.mycplus.com *
* […]

By |C++ Source Code|1 Comment

Database projects

This a database management project .

By |C++ Source Code|0 Comments

SnakeMan

It is a snake game same as in Nokia Mobile Phones. I assure that you would love it. The code is quite simple to understand. I would be happy if you visit it.
/*******************************************************
* MYCPLUS Sample Code – http://www.mycplus.com *
* […]

By |C++ Source Code|0 Comments

Bubble Sort

Read an integer array, print it, then sort it and print it. Use the bubble sort method

By |C++ Source Code|0 Comments