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

Great Librarian 2.00.1

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

Demonstration of Linked list in java

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

Stack Implementation in Java

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

Validating the email address in ASP

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

Factorial of a Number

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

Check URL

Check URL

This script is particularly useful for those who have their site on a free webspace provider, then use a "come.to" redirecting service. What this script will do is analyze the URL the visitor is at, and if they did not came to your site via the redirecting URL, it can...

Clock Type

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! [code='javascript']/******************************************************* * MYCPLUS Sample Code -...

Date and Time Stamp

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. [code='javascript']/******************************************************* * MYCPLUS Sample Code -...

8Queen with simple graphics

8Queen with simple graphics

This is a simple C language program that will locate 8 queen in chess board with all of the states and you can determine the position of first queen on the chess board. [code='c'] /******************************************************* * MYCPLUS Sample Code -...

Browser Information

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

Inheritance example

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

Function name overloading

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. [code='cpp'] /******************************************************* *...

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

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