C and C++ Programming Resources

Custom Search

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

Reading Files

Posted on January 17th, 2009 0 Comments

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...
Read More | Make a Comment

Great Librarian 2.00.1

Posted on November 16th, 2008 6 Comments

Great Librarian 2.00.1
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....
Read More | Make a Comment

Demonstration of Linked list in java

Posted on October 31st, 2008 0 Comments

Demonstration of Linked list in java
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...
Read More | Make a Comment

Stack Implementation in Java

Posted on October 30th, 2008 0 Comments

Stack Implementation in Java
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...
Read More | Make a Comment

Validating the email address in ASP

Posted on October 29th, 2008 0 Comments

Validating the email address in ASP
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...
Read More | Make a Comment

Factorial of a Number

Posted on October 28th, 2008 4 Comments

Factorial of a Number
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. /******************************************************* *...
Read More | Make a Comment


Page 1 of 2412345678910...20...Last »