C and C++ Programming Resources

Custom Search

Source Code

Random number within a range

Posted on October 11th, 2008 0 Comments

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 function for general purpose use where a random number is needed in ASP. '******************************************************* '*...
Read More | Make a Comment

Snake Game

Posted on October 10th, 2008 4 Comments

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. The objective of the game is to make the snake eat the said digit, so that it is...
Read More | Make a Comment

Shuffle Game

Posted on October 10th, 2008 0 Comments

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 programming in C language.   Shuffle Game (5.6 KiB, 5,662 hits)
Read More | Make a Comment

TIC TAC TOE Game

Posted on October 10th, 2008 1 Comment

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 playing with computer use can select either novice mode or advance mode. An excellent C program...
Read More | Make a Comment

Paint in Dos

Posted on October 9th, 2008 0 Comments

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, Bangalore. (Computer Science and Engineering, Batch of 2002).I have no intentions of working to improve...
Read More | Make a Comment

N Fibonacci numbers

Posted on October 9th, 2008 0 Comments

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 number is equal to the sum of the previous two numbers of the sequence itself, thus creating the...
Read More | Make a Comment

C Calculator Program

Posted on September 29th, 2008 0 Comments

This is a simple calculator written in C language and works under DOS prompt. The calculator performs all the basic arithematic operations including addition, subtraction, trignometric calculations, and many other functions. It can also calculate logrithms, powers, and roots of integer numbers. /******************************************************* * ...
Read More | Make a Comment

Stack implementation with array

Posted on September 28th, 2008 0 Comments

This java code basically implements stack functionality. It can Pop and Push an item in stack with the help of array. The item can only be an integer number and inernally the java program uses arrays to maintain items in stack. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * ...
Read More | Make a Comment


Page 3 of 2412345678910...20...Last »