Source Code

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

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

This is a small C language program that can read a text file. The program is given file name as command parameter and it reads the file line by line. The program will print out number of characters and words in each line. The program will also print out the number of lines in the text file. File name should contain complete physical path or only the file name...

This is a C programming code by which a librarian can operate his library more fast. Students details can be added, updated and can issue multiple books. Progam shows different information about library including numbers of books and students. Books can also be added and updated. Books can be added along with title, author and quantity and special code for book....

This is a very simple demonstration of linked list in java programming language. Very nice and well commented java source code for beginners. User can “get” and “set” the list items as well as traverse through “previous” and “next ” items. This java program can create a linked list using one object or an array of...

An object of type IntStack is a stack of real numbers, with the standard stack operations push(int N), pop(), and isEmpty(). A makeEmpty() operation is also provided to remove all items from the stack.
Internally, the stack is implemented as a linked list.
/*******************************************************
* MYCPLUS Sample Code - http://www.mycplus.com...

The IsValidEmail function checks for a valid email, IsValidEmail returns True if the email address is a valid email, IsValidEmail returns false if the email address isn’t proper syntax. The code is well commented and should explain what is happening .
This code checks for @ and a . period sign as well as only acceptable characters. i.e. if a user have entered...

This program calculates the the factorial of an integer number entered by the user. The function uses for loop to calculate the factorial and returns the number. Program terminates if a non integer number is entered. This C language program uses for loop in just a single statement to calculates the factorial of integer number.
/*******************************************************
*...