hang game - /A HANGMAN Game Program Dated: 14 NOV 2005 /*...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Page 1 //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'} char secondrow[]={'A','S','D','F','G','H','J','K','L'} char thirdrow[]={'Z','X','C','V','B','N','M'} char *main_menu[]={{"1. PLAY"},{"2. INSTRUCTIONS"},{"3. HI-SCORE"},{"4. EXIT"}} char *categories[]={{"1. MOVIES"},{"2. SPORTS"},{"3. MOVIE STARS"},{"4. PLACES"}} char *m_m[]={"P","I","H","E"},*c_m[]={"M","S","A","P"} int blankpos_x[]={25,50,75,100,125,150,175,200,225,250,275,300,325,350,375,400 } int blankpos_y[]={80,150,300,340},cat_pos_x[]={130,130,314,130} char string[50],name[25],category[20],checklist[50],hitlist[50] char wr_guesses[10],ch,datebuf[9],timebuf[9] int button,x,y,corx,cory,len=0,d,m,mx,my,i,j,k,count_s=0,count_f=0,hcount=0,fl ag=0,hlflag=1,spaces=0 int hlcount=0,prflag=0,hngmnflag=0,dispflag=0,gameflag=0 int tcolor=GREEN,acolor=RED void drawsetup()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

hang game - /A HANGMAN Game Program Dated: 14 NOV 2005 /*...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online