C and C++ Programming Resources

Custom Search

C Programming Source Code

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

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

8Queen with simple graphics

Posted on October 19th, 2008 0 Comments

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. /******************************************************* * MYCPLUS Sample Code - http://www.mycplus.com * * * * This code 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, 7,060 hits)
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

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


Page 1 of 812345678