SOURCE CODE

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

Reading Files

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 prints out number of characters and words in each line. The program will also prints out the number...

C Program of Library Management System

This is a C program of Library Management System by which a librarian can operate a simple library. User can add multiple students, update their records and issue multiple books. This C Program shows different information about library including numbers of books and...

Java Program to demonstrate of Linked List

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

Java Program to show Stack Implementation

This is a simple Java program to demonstrate Stack data structure implementation. 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...

ASP Program to validate email address

This is a simple ASP Program to validate email address. The IsValidEmail() function checks for a valid email and returns true if the email address is a valid email otherwise it returns false if the email address isn't proper syntax. The code is well commented and...

JavaScript Program to show Clock Type

This is a really neat little script that can display the current time in "Military Time" or "12 Hour Time" with the push of a button. Give it a try, it's neat! [crayon-5a2f923a3e97b313719182/]  

JavaScript Program to show Date and Time Stamp

This is a simple JavaScript Program to show Date and Time Stamp. With this script, you can have the date and time the page was loaded 'stamped' to the page. This would make a wonderful header or footer for any web page. [crayon-5a2f923a3edfe626657409/]  

Java program to show Browser Information

This script does a great job of displaying information about your web browser including version, your computer's platform, if Java is enabled, how many pages you've visited, and screen resolution. Take a look, it's pretty cool. [crayon-5a2f923a3f70c634221111/]  

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

Capitalize the first letter

This is a very simple ASP function that will capitalise the first letter of the input string. Some time user do enters his/her name as with out capatalising first letter of the name. So this function can take care of whether a use enters name as "david" or "DAVID" and...

Random number within a range

This is a small ASP function that will return a random number between two numbers. It will takes two numbers (maximum & minimum) numbers and generate a random number within that range. It will geenrate a random number every time the function is called. Quite handy...

Shuffle Game

Shuffle Game is a simple C program to shuffle the numbers. The numbers predefined from 1-8 and they can be sorted out first and then the numbers are easily shuffled to generate random sequence. It's a very nice program for some one who have jsut started learning...

Snake Game

This program simulates the game "snake". A string of characters moves on the screen according to arrow keys pressed by user. If it touches itself or screen boundary, the program terminates. When the snake moves, in arbitrary screen positions some digit (1-9) appears....

TIC TAC TOE Game

This is an advance version of Tic Tac Toe computer game written in c programming language. The game runs in graphical mode of DOS prompt and users can play the game in graphical mode. The game has many options to choose from, like playing with computer, friend. While...

Paint in Dos

Anyone and Everyone is allowed to use this code freely without any conditions.I wrote most of this code as a part of a college assignment in my Computer Graphics Lab when I was in the 6th semester of Engineering. I am a student of R.V College of Engineering,...

C Program to print N Fibonacci numbers

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent...

Page 1 of 812345678
0 Shares
Share
+1
Tweet
Share
Stumble