Mini Projects

Arcanoid with mouse in c++

A cute game by gaurav sarin, imran , priyank , nitin Code : /********************** |||||||| BRICK GAME ||||||||| *************************/ #include <iostream.h> #include <conio.h> #include <ctype.h> //defining toupper # include <process.h> //exit(0) # include <dos.h> # include <stdlib.h> # include <graphics.h> # include <stdio.h> # define NULL 0 # define YES 1 # define NO 0 …

Arcanoid with mouse in c++ Read More »

Snakeman in c++

//80*48 #include<fstream.h> #include<stdlib.h> #include<process.h> #include<stdio.h> #include<time.h> #include<dos.h> #include<string.h> #include<graphics.h> #include<bios.h> #include<conio.h> #include<iomanip.h> unsigned key; int len=0,count=0,foodtype=0,d,m,food_flag=0,j=0,i=0,display_count=10, hscore_pos=0,x_index=0,y_index=0,mx,my,maze=1,speed=100; long score=0,ti_elap=0,ti_rem=15,tot_ti=15,ti_init; char *main_menu[]={{“1. Play”},{“2. Options”},{“3. Instruction”}, {“4. Hi-Score”},{“5. Exit”}}; char *game_menu[]={{“1. Mazes”},{“2. Level”},{“3. Back to Main menu”}}; char *maze_menu[]={{“1. Open”},{“2. Box”},{“3. Twisted”}, {“4. Return to Main menu”}}; char *level_menu[]={{“1. Beginner”},{“2. Intermediate”},{“3. Expert”}, {“4. Return to Main menu”}}; …

Snakeman in c++ Read More »

Hangman Game in c++

A beautiful yet simple mini project game.. //A HANGMAN Game Program Dated: 14 NOV 2005 /* Developed By: Manish Jain 1103143 3rd yr M.M.E.C. Mulana mkj_manishjain@yahoo.co.in +91 9896455735 */ //HEADER FILES #include<fstream.h> #include<bios.h> #include<time.h> #include<dos.h> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<graphics.h> #include<conio.h> #include<mouse.h> #define SMILE 1 #define SAD 0 //VARIABLES AND FUNCTIONS DECLARATION unsigned key; char firstrow[]={‘Q’,’W’,’E’,’R’,’T’,’Y’,’U’,’I’,’O’,’P’}; …

Hangman Game in c++ Read More »

HIGH/LOW GAME in c++

A simple high log game project by molly arora. This is the game where you guess a number between 1 to 100. The program then asks you some simple queries about your guess and calculates the number you have guessed. /* HIGH/LOW GAME */ #include<iostream.h> #include<conio.h> #include<stdlib.h> /* This program plays a simple game.The computer …

HIGH/LOW GAME in c++ Read More »