| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1034 人关注过本帖
标题:[原创]一个CAI的程序
只看楼主 加入收藏
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
结帖率:0
收藏
 问题点数:0 回复次数:6 
[原创]一个CAI的程序

兄弟们 我又回来了 自从上学以后就一直没机会上网 真的很抱歉 现在特意到论坛来发表一下小东西 前一阵 答应给朋友做一个CAI 的程序 便答应了下来 现在做好了 干脆发上来献丑一下吧本来想加入一个播放音乐的部分 但是时间挺紧 也就没有加 等到以后有时间的话 我会把音乐部分也加近来 其中也许会有一些bug 欢迎大家批评指正 这个是我c语言的最后一个程序了 从这以后我就将告别c语言 开始搞window编程了 愿我能够成功 #include<stdio.h> #include<math.h> #include<dos.h> #include<malloc.h> #include<bios.h> #include<stdlib.h> #include<graphics.h> #include<string.h> #define UP 0x4800 #define DOWN 0x5000 #define ENTER 0x1c0d #define ESC 0x011b #define XMAX 8 #define YMAX 39 #define Y 25 #define YY (19+Y) FILE *f1; int count=0,turn; struct chop { int noun; char name[10]; int speed; }person[10]; char *p[10]={" A high school history teacher once told us,'if you make one close friend in school,you will be most fortunate. A true friend is someone who stays with you for life. 'Experience teaches that he was right ,good friendship are just not easily formed.Why? One reason may relate to the mobility in our society.mr.Darrell Sifford, a news columnist for the <philadelphia inquirer>, has been studying and talking about frienship for a number of years. He reports the thoughts of one woman on this aspect of friendship:'I was nine ,' and we'd just been transferred from South Carolina to new Jersey , and I didn't know anybody." ," The launch was the first time for me on the middeck, inside the space shuttle. There are no windows there and you can not see outside.it surprised me when the shuttle began to roll as part of the launch.All space shuttles do this .But I was used to being on the flight deck where we can see outside through the forward and overhead windows. Up there you can see what is happening ,We soon were in orbit and linked with the International Space station ,Everyone became very busy.Things did not slow down until the shuttle left for the return flight to earth ,there is a limited amount of time to do all of the planned tasks. " ," Our working days slowed a little,but we were still busy. We worked outside the space station two times in January and we had to move cargo? Into the space station from the Russian cargo ship Progress.The Christmas and New Year holidays wewe a nice break from our work.It was very hard for me to be away from my family.We spent most of the holidays catching up on sleep, writing electronic mail and watching movies.We aslo called friends and family on a special telephone linked to the Internet communications system.it was very special to be able to call my family.it was a lot of fun to call someone and listen to their surprise when we asid we were calling from space. " ," To most of us ,frendships rank high in importance, but we need to have clear in our own minds the kinds of friendship we want.Are they to be close and intense or kept at arm's length? Do we want to share ourselves or do we want to walk on the surface?''for some people, many superficial frendships are quite sufficient - and that's all right. But at some point we need to make sure that our expectations are congruent with our friends'expectations.if one wants more from the friendshop than the other.and if this is not talked about ,one is likely eventually to feel that he's holding the short end of the stick." ," What are some of the obstacles to friendships?According to Mr.Sifford,the greatest is the temptation to expect too much too soon. Deep relationships take time.Another 'prime difficulty is the selfish tendency to think one 'possesses' the other, with an almost exclusive right to his time and attention .Similarly, friendships require bilateral reciprocal actions. in brief ,you must give as much as you take,Finally there is a question of nurturing, of cultivating one's own garden in the image of the French philosopher, Voltaire. Unless you spend reasonable time together, talking on the phone writing letters." ," Why is it so difficult to form friendships Perhaps the answer has something to do with the impatient temperament of some American People. It is posible,as Mr.Sifford states that we simply do not stay in one place long enough for a true friendship to develop. However,there can be no disgreement on the need for each of us to think carefully about the kind of friendships we want.As in all interpersonal relationship,success depends on clarity of pupose,openness to others ,willingness to experiment.The sharing of intimacies, including ultimately our fears as well as our dark dreams is the surest way to deepen friendships ." ," Isabel played more brilliantly than ever that afternoon, there was a thunder of applause from the audience. Her music teacher Serge hugged her ecstatically and told her Andreas Korda, the famous publisher wanted to invite her to have dinner. From the moment Isabel stepped into the foyer of the luxury hotel, Isabel knew immediately which one was Andreas Korda, even though she had never seen a photo of him. He was tall, with a lean, athletic physique. But it was his eyes that really captivated her as if he could see right into her soul.You're so young,' he murmured.'Even younger that I thought.'" ," 'I am 18!' she protested.His lips twitched. 'And I'm 32, but I admit that you play the violin like a mature woman, a woman who has known grief and passion, anger and joy. How is this possible?'Then she told him about her early talent, her mother didn't understand that music was her life, so she went to ask for the best teacher of the conservatorium when she was 10 years old.And that was how you met Serge?' she nodded, then asked: 'Are you happy when you became a millionaire?'Money isn't everything,' he said in a brooding tone, 'It hasn't much to do with happiness'.Are you unhappy?' she ventured." ," American astronaut Kaniel Bursch retruned to earth June 19th after a total of one-hundred ninety-six days in space.He and the other American crewmember Carl Waltz now hold the American record for the longest time spent in space on one flght Astronaut Bursch was chosen to live on the space station crew bacause he had spent almost three-thousand flight hours in more than thirty-five different aircraft. Hehad also flown three times as a crewmember of the space shuttle. Before living on the space station, he spent more than seven-hundred-forty hours in space.Mister Bursch is a graduate of the United states Naval Academy." ," He has advanced education in engineeringscience. He was selected by NASA in January 1990 and became an astronaut in July,1991. The Space Shuttle Endeavour was launched into space December 5th,2001.It was carrying two American astronauts and one Russian cosmonaut to the International Space Station.Daniel Bursch began writing on his one-hundred day in orbit,March 18th. He wrote the diary in an effort to give others a feel for what it is like to be a crewmember on the International space Station.Mister Bursch said the trip to the International space Station was a little different experience for him ."}; void interrupt (*oldtimer)(); void interrupt newtimer() { count++; oldtimer(); } void writefile() { int i; f1=fopen("c:\\mark.txt","w"); for(i=0;i<10;i++) { fwrite(&person[i],sizeof(person[i]),1,f1); } fclose(f1); } void readfile() { int i; for(i=0;i<10;i++) { fread(&person[i],sizeof(person[i]),1,f1); } } void newfile() { int i; f1=fopen("c:\\mark.txt","w"); for(i=0;i<10;i++) { person[i].noun=i+1; person[i].name[0]='C'; person[i].name[1]='P'; person[i].name[2]='U'; person[i].name[3]='\0'; person[i].speed=0; fwrite(&person[i],sizeof(person[i]),1,f1); } } int Hitword() { int sign=-1,a,b=0,n=-1,x=15,y=Y,i=0,j=0,k,true1=0,false1=0,timem,rad=0; float /*time,*/fold,speed; unsigned char zimo[][16][2]={ {0x00,0x40,0x47,0xFC,0x30,0x40,0x23,0xF8, 0x00,0x40,0x07,0xFE,0xF0,0x00,0x13,0xF8, 0x12,0x08,0x13,0xF8,0x12,0x08,0x13,0xF8, 0x16,0x08,0x1A,0x08,0x12,0x28,0x02,0x10}, {0x20,0x40,0x20,0x40,0xFC,0xA0,0x21,0x18, 0x43,0xF6,0x54,0x00,0xFC,0x04,0x53,0xD4, 0x12,0x54,0x1F,0xD4,0xF2,0x54,0x13,0xD4, 0x12,0x54,0x12,0x54,0x13,0x44,0x12,0x8C}, {0x0C,0x00,0x06,0x00,0x02,0x00,0x01,0x00, 0x03,0x00,0x02,0x80,0x02,0x80,0x04,0x40, 0x04,0x20,0x08,0x20,0x08,0x10,0x10,0x08, 0x20,0x0E,0x40,0x04,0x80,0x00,0x00,0x00}, {0x20,0x20,0x30,0x20,0x21,0x20,0x21,0x20, 0xFD,0xFE,0x25,0x20,0x26,0x20,0x44,0x20, 0x48,0x20,0x29,0xFC,0x10,0x20,0x28,0x20, 0x24,0x20,0x44,0x20,0x83,0xFE,0x00,0x00}, {0x04,0x00,0x04,0x00,0x07,0xF8,0x08,0x10, 0x10,0x20,0x24,0x40,0x42,0x80,0x01,0x00, 0x06,0x00,0x1F,0xF8,0xE8,0x08,0x08,0x08, 0x08,0x08,0x0F,0xF8,0x08,0x08,0x00,0x00} }; char t[11],str[11],ch,s[2],q[6][20]; rad=rand()%10; s[1]='\0'; /*a=strlen(p);*/ setcolor(15); settextstyle(0,0,1); cleardevice(); setfillstyle(1,14); bar(0,0,640,480); setcolor(BLACK); rectangle(10,10,620,440); setfillstyle(1,15); floodfill(100,100,BLACK); setfillstyle(1,7); bar(621,15,625,445); bar(15,441,625,445); setfillstyle(1,BLACK); /* bar(3,450,635,475); */ bar(15,380,615,405); setcolor(12); outtextxy(55,420,"QQ 43334708"); outtextxy(205,420,"BY chengstone"); outtextxy(370,420,"Email chengstone@21cn.com"); setcolor(BLACK); while(p[rad][i]!=0) { while(x<610&&p[rad][i]!=0) { s[0]=p[rad][i++]; outtextxy(x,y,s); x+=XMAX; } y+=YMAX; x=15; } x=15;y=YY;i=0; gotoxy(10,25);printf("version 1.0"); oldtimer=getvect(0x1c); disable(); setvect(0x1c,newtimer); enable(); gotoxy(40,25); printf("TIME %02d:%02d",b,0); if(getch()!=27) { while(p[rad][i]!=0) { while(x<610&&p[rad][i]!=0) { if(count>18){ gotoxy(40,25); printf("TIME %02d:%02d",b,++n); count=0; } if(n==59){ b++; n=-1; } gotoxy(55,25); printf("TRUE= %d FALSE= %d",true1,false1); outtextxy(x,y-10,"-"); if(kbhit()){ch=getch(); if(ch==27){killtimer();goto exit;} if(cmp(ch,p[rad][i])==0){ true1++; s[0]=p[rad][i++]; setcolor(WHITE); line(15,y-7,612,y-7); setcolor(BLUE); outtextxy(x,y,s); } else { i++; false1++; setcolor(WHITE); line(15,y-7,612,y-7); setcolor(RED); s[0]=ch; outtextxy(x,y,s); setcolor(BLACK); } x+=XMAX; } } y+=YMAX; x=15; } killtimer(); gotoxy(55,25); printf("TRUE= %d FALSE= %d",true1,false1); getch(); /* time=b+(float)n/60;*/ timem=b*60+n; fold=100*(float)true1/strlen(p[rad]); speed=((float)true1/timem)*60; score(); /*itoa(a,q[0],10);*/ itoa(strlen(p[rad]),q[0],10); itoa(b*60+n,q[1],10); itoa(true1,q[2],10); itoa(false1,q[3],10); itoa((int)fold,q[4],10); itoa((int)speed,q[5],10); y=100; x=370; settextstyle(0,0,2); for(i=0;i<6;i++) { outtextxy(x,y,q[i]); y+=54; } for(i=9;i>=0;i--) { if(speed>person[i].speed) { if(i!=9)person[i+1].speed=j; j=person[i].speed; /* 这里的j是原来的buf */ person[i].speed=(int)speed; sign=i; } } for(i=0;person[sign].name[i]!='\0';i++) { str[i]=person[sign].name[i]; } str[i]='\0'; for(i=sign+1;i<10;i++) { person[i].speed^=j; j^=person[i].speed; /* 这里的j是原来的buf */ person[i].speed^=j; } if(sign>=0) { setfillstyle(SOLID_FILL,BLUE); bar(145,415,500,440); x=150; y-=5; for(a=0;a<5;a++) { for(b=0;b<16;b++) for(j=0;j<2;j++) for(k=0;k<8;k++) { if(zimo[a][b][j]&(0x80>>k))putpixel(x+j*8+k,y+b,YELLOW); } x+=25; } settextstyle(0,0,1); outtextxy(x,y+5,":"); j=0; x+=10; while((ch=getch())!=13) { if(j!=10&&j>=0) { if(ch==8){ j--; if(j>=0){ x-=10; bar(x,y,x+10,y+13); } else j++; } else if(ch==27){} else { s[0]=ch; outtextxy(x,y+5,s); person[sign].name[j++]=ch; x+=10; } } else if(ch==8){ j--; if(j>=0){ x-=10; bar(x,y,x+10,y+13); } } } person[sign].name[j]='\0'; for(j=sign+1;j<10;j++) { for(i=0;person[j].name[i]!='\0';i++) { t[i]=person[j].name[i]; } t[i]='\0'; for(i=0;str[i]!='\0';i++) { person[j].name[i]=str[i]; } person[j].name[i]='\0'; for(i=0;t[i]!='\0';i++) { str[i]=t[i]; } str[i]='\0'; } writefile(); } else getch(); } else killtimer(); exit: return 1; }

搜索更多相关主题的帖子: CAI 
2004-11-22 23:33
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 
show()
{
  int a,i,j,k,x,y;
  char s[2][15];
 unsigned char word[][32][4]={   {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,0x00,0x00,0xE2,0x00,
0x00,0x00,0xE3,0x00,0x00,0x00,0x61,0x80,
0x00,0x00,0x61,0xC0,0x00,0x00,0x60,0x80,
0x04,0x00,0x60,0x18,0x07,0xFF,0xFF,0xFC,
0x06,0x00,0x60,0x00,0x06,0x00,0x60,0x00,
0x06,0x00,0x60,0x40,0x06,0x00,0x60,0x60,
0x06,0x00,0x20,0x70,0x06,0x06,0x30,0xE0,          /*成*/
0x07,0xFE,0x30,0xC0,0x06,0x06,0x30,0xC0,
0x06,0x06,0x31,0x80,0x06,0x04,0x19,0x80,
0x06,0x04,0x1B,0x00,0x06,0x04,0x1B,0x00,
0x04,0x04,0x0E,0x00,0x0C,0x0C,0x0E,0x04,
0x0C,0x0C,0x1F,0x04,0x08,0xFC,0x33,0x84,
0x08,0x38,0x61,0xCC,0x18,0x10,0xC0,0xFC,
0x10,0x01,0x80,0x3C,0x20,0x02,0x00,0x1C,
0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x80,0x0C,0x00,0x01,0xC0,0x0C,0x00,
0x01,0x80,0x0C,0x00,0x03,0x00,0x0C,0x30,
0x03,0x03,0xFF,0xC0,0x06,0x00,0x0C,0x00,
0x04,0x10,0x0C,0x20,0x0C,0x19,0xFF,0xF0,
0x08,0x30,0x0C,0x00,0x10,0x30,0x0C,0x08,
0x3F,0xE0,0x0C,0x1C,0x18,0xC7,0xF3,0xE0,        /*绩*/
0x00,0x80,0x00,0x00,0x01,0x01,0x00,0x30,
0x02,0x01,0xFF,0xF0,0x06,0x01,0x00,0x20,
0x0C,0x01,0x08,0x20,0x19,0xF1,0x0C,0x20,
0x1F,0x01,0x0C,0x20,0x18,0x01,0x08,0x20,
0x00,0x01,0x08,0x20,0x00,0x01,0x18,0x20,
0x00,0x71,0x18,0x20,0x07,0x82,0x12,0x00,
0x3E,0x00,0x31,0xC0,0x18,0x00,0x60,0x70,
0x00,0x00,0xC0,0x38,0x00,0x03,0x00,0x18,
0x00,0x1C,0x00,0x08,0x00,0x00,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x01,0x80,0x73,0x80,
0x01,0x00,0x62,0x00,0x01,0x00,0x62,0x00,
0x01,0x00,0x62,0x00,0x01,0x00,0x62,0x08,
0x01,0x20,0x62,0x1C,0x3F,0xFF,0xE3,0xE0,
0x01,0x00,0x62,0x00,0x01,0x00,0x62,0x00,
0x01,0x00,0x62,0x00,0x01,0x00,0x62,0x00,    /*排*/
0x01,0x30,0x62,0x18,0x01,0xCF,0xE3,0xFC,
0x07,0x00,0x62,0x00,0x1D,0x00,0x62,0x00,
0x39,0x00,0x62,0x00,0x31,0x00,0x62,0x00,
0x01,0x00,0x62,0x08,0x01,0x1F,0xE2,0x1C,
0x01,0x00,0x63,0xE0,0x01,0x00,0x62,0x00,
0x01,0x00,0x62,0x00,0x01,0x00,0x62,0x00,
0x01,0x00,0x62,0x00,0x03,0x00,0x62,0x00,
0x1F,0x00,0x62,0x00,0x07,0x00,0x62,0x00,
0x00,0x00,0x42,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x40,0x00,0x00,0x00,0x60,0x00,0x20,
0x00,0xE0,0x00,0x70,0x01,0xC1,0xFF,0x80,
0x01,0x80,0x00,0x00,0x02,0x00,0x00,0x00,
0x04,0x20,0x00,0x00,0x08,0x30,0x00,0x00,
0x30,0x70,0x00,0x00,0x00,0x60,0x00,0x18,
0x00,0xCF,0xFF,0xFC,0x01,0x80,0x06,0x00,
0x01,0x80,0x06,0x00,0x03,0xC0,0x06,0x00,       /*行*/
0x06,0x80,0x06,0x00,0x0C,0x80,0x06,0x00,
0x08,0x80,0x06,0x00,0x10,0x80,0x06,0x00,
0x60,0x80,0x06,0x00,0x00,0x80,0x06,0x00,
0x00,0x80,0x06,0x00,0x00,0x80,0x06,0x00,
0x00,0x80,0x06,0x00,0x00,0x80,0x06,0x00,
0x00,0x80,0x06,0x00,0x00,0x80,0x06,0x00,
0x00,0x81,0xEE,0x00,0x00,0x80,0x3E,0x00,
0x01,0x00,0x1C,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0x00,0x10,0x00,0x03,0x80,0x18,0x00,
0x03,0x00,0x0C,0x00,0x03,0x00,0x0C,0x18,
0x03,0x07,0xFF,0xFC,0x03,0x00,0x81,0x00,
0x03,0x20,0x41,0xC0,0x03,0x30,0x61,0x80,
0x3F,0xC0,0x61,0x00,0x03,0x00,0x22,0x08,
0x03,0x04,0x02,0x1C,0x03,0x87,0xFD,0xFC,
0x07,0x4C,0x18,0x10,0x07,0x6C,0x0C,0x20,
0x07,0x30,0x0C,0x00,0x0F,0x30,0x08,0x08,                /*榜*/
0x0B,0x0F,0xFF,0xFC,0x0B,0x00,0x20,0x00,
0x13,0x00,0x60,0x00,0x13,0x00,0x60,0x30,
0x23,0x00,0x7F,0xF0,0x23,0x00,0x40,0x60,
0x43,0x00,0xC0,0x60,0x03,0x00,0xC0,0x60,
0x03,0x01,0x80,0x60,0x03,0x01,0x00,0x40,
0x03,0x02,0x0C,0xC0,0x03,0x0C,0x03,0xC0,
0x03,0x10,0x01,0x80,0x00,0x00,0x00,0x00}
  };
unsigned char hanzi[][24][3]={
 {0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,
0xC0,0x04,0x04,0xC0,0x04,0x04,0xC0,0x04,
0x04,0xC0,0x05,0x7C,0xFC,0x3E,0x84,0xC0,
0x04,0x04,0xC0,0x04,0x04,0xC0,0x04,0x84,             /*排*/
0xC0,0x07,0x7C,0xFC,0x0C,0x04,0xC0,0x74,
0x04,0xC0,0x24,0x04,0xC0,0x04,0x04,0xC4,
0x04,0xFC,0xFE,0x04,0x04,0xC0,0x04,0x04,
0xC0,0x04,0x04,0xC0,0x04,0x04,0xC0,0x1C,
0x04,0xC0,0x08,0x04,0xC0,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,
0x00,0x00,0x60,0x00,0x00,0x40,0x20,0x00,
0xFF,0xF0,0x01,0x80,0x60,0x01,0x00,0xC0,
0x02,0x81,0x80,0x04,0x61,0x00,0x08,0x22,
0x00,0x10,0x0C,0x00,0x00,0x18,0x00,0x00,
0x30,0x00,0x00,0xC0,0x10,0x01,0xBF,0xF0,         /*名*/
0x06,0x80,0x10,0x18,0x80,0x10,0x60,0x80,
0x10,0x00,0x80,0x10,0x00,0x80,0x10,0x00,
0xFF,0xF0,0x00,0x80,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,
0xC0,0x06,0x00,0x80,0x04,0x00,0x80,0x04,
0x0C,0x80,0x0C,0x08,0x80,0x7F,0xD8,0x80,
0x08,0xFF,0xFC,0x08,0xD0,0x80,0x08,0x90,
0x80,0x10,0xA0,0x80,0x10,0xA0,0x80,0x11,         /*姓*/
0xC0,0x88,0x31,0x1F,0xFC,0x21,0x00,0x80,
0x1F,0x00,0x80,0x03,0x80,0x80,0x06,0xC0,
0x80,0x04,0x40,0x80,0x08,0x00,0x80,0x10,
0x00,0x8C,0x20,0x3F,0x70,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x18,0x02,0x00,0x0C,0x02,0x08,0x05,
0xFF,0xFC,0x04,0x02,0x00,0x00,0x02,0x00,
0x00,0x7F,0xF0,0x04,0x42,0x30,0x0E,0x42,
0x30,0x34,0x42,0x30,0x04,0x7F,0xF0,0x04,                  /*速*/
0x46,0x20,0x04,0x0E,0x00,0x04,0x1B,0xC0,
0x04,0x32,0x30,0x04,0x42,0x18,0x0C,0x82,
0x08,0x13,0x02,0x00,0x61,0x82,0x00,0x20,
0x7F,0xFE,0x00,0x1F,0xF8,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x08,
0x00,0x00,0x0C,0x00,0x08,0x08,0x0C,0x0F,
0xF7,0xF0,0x08,0x30,0xC0,0x08,0x20,0x80,
0x08,0x20,0x8C,0x0F,0xFF,0xF0,0x08,0x20,                   /*度*/
0x80,0x08,0x20,0x80,0x08,0x3F,0x80,0x18,
0x40,0x00,0x19,0xFF,0xE0,0x10,0x20,0xC0,
0x10,0x10,0x80,0x10,0x11,0x80,0x10,0x0B,
0x00,0x20,0x06,0x00,0x20,0x1B,0x80,0x40,
0x60,0xFC,0x47,0x80,0x38,0x00,0x00,0x00}
 };
 cleardevice();
 setfillstyle(SOLID_FILL,13);
 bar(0,0,639,479);
 x=170; y=50;
 for(a=0;a&lt;5;a++)
 {
 for(i=0;i&lt;32;i++)
  for(j=0;j&lt;4;j++)
   for(k=0;k&lt;8;k++)
    {
      if(word[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,11);
    }
 x+=60;
 }
 setcolor(9);
 rectangle(110,y+50,520,y+410);
 rectangle(120,y+60,510,y+400);
 line(250,110,250,y+400);
 line(370,110,370,y+400);
 x=150;y=120;
 for(a=0;a&lt;5;a++)
 {
 for(i=0;i&lt;24;i++)
  for(j=0;j&lt;3;j++)
   for(k=0;k&lt;8;k++)
    {
      if(hanzi[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,11);
    }
 x+=60;
 if(a==2){
          for(i=0;i&lt;24;i++)
           for(j=0;j&lt;3;j++)
            for(k=0;k&lt;8;k++)
             {
              if(hanzi[1][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,11);
             }
          x+=60;
         }
 }
 settextstyle(0,0,1);
 settextjustify(1,2);
 for(i=0;i&lt;10;i++)
  {
    line(120,150+30*i,510,150+30*i);
    itoa(person[i].noun,s[0],10);
    itoa(person[i].speed,s[1],10);
    outtextxy(180,160+30*i,s[0]);
    outtextxy(300,160+30*i,person[i].name);
    outtextxy(420,160+30*i,s[1]);
  }
 settextjustify(0,2);
 getch();
 turn=0;
 return 1;
}
int randto(int m,int n)
{ return rand()%n+m; }
void over()
{
 register i,j;
 int osize,size,x,y;
 void *buffer,*buff;
 setcolor(15);
 randomize();
 for(x=1;x&lt;6-2;x++)
  {
    line(0,240,x,240);
    delay(2000);
    if(x==5-2)for(y=1;y&lt;6-2;y++)
         {
               line(0,239,y,239);
               line(0,241,y,241);
               line(0,240,x+y,240);
           delay(2000);
               if(y==5-2)for(i=1;i&lt;=640;i++)
            {
                          line(0,238,i,238);
                          line(0,242,i,242);
                          line(0,239,y+i,239);
                          line(0,241,y+i,241);
                          line(0,240,x+y+i,240);
              delay(2000);
                        }
             }
  }
 setcolor(BLACK);
 line(0,240,640,240);
 delay(2000);
 x=240;
 for(y=0;y&lt;50-30;y++)
  { putpixel(rand()%640,240,randto(1,15)); }
 for(i=1,j=3;i&lt;=110;i++,j++)
  {
    setcolor(7);
    line(0,x-i,640,x-i);
    line(0,x+i,640,x+i);
    delay(2000);
    setcolor(WHITE);
    line(0,x-j,640,x-j);
    line(0,x+j,640,x+j);
    delay(2000);
    setcolor(BLACK);
    line(0,x-i,640,x-i);
    line(0,x+i,640,x+i);
    for(y=0;y&lt;50-30;y++)
     {
       putpixel(rand()%640,x-i,randto(1,15));
       putpixel(rand()%640,x+i,randto(1,15));
     }
    delay(2000);
  }
 setcolor(11);
 settextstyle(0,0,8);
 size=imagesize(32,150,383,205);
 buffer=malloc(size);
 osize=imagesize(250,270,598,325);
 buff=malloc(osize);
 getimage(32,150,383,205,buffer);
 getimage(250,270,598,325,buff);
 outtextxy(35,150,"GAME");
 outtextxy(350,270,"OVER");
 putimage(32,150,buffer,COPY_PUT);
 putimage(250,270,buff,COPY_PUT);
 for(i=1;i&lt;=140;i+=5)
  {
   putimage(32,150,buffer,COPY_PUT);
   if(i&lt;=120)putimage(250,270,buff,COPY_PUT);
   outtextxy(35+i,150,"GAME");
   if(i&lt;=120)outtextxy(350-i,270,"OVER");
  }
 getch();
 closegraph();
}
int cmp(char c,char s)
{
 return(c-s);
}
void init()
{
 int gm=DETECT,gd=0;
 registerbgidriver(EGAVGA_driver);          /* tc的用户这里恐怕要改改吧?反正我在学校的机器用tc这句通不过 */
 initgraph(&amp;gm,&amp;gd,"");
}
void Interface()
{
  int c,color=15;
  randomize();
  settextstyle(0,0,9);
  outtextxy(220,210,"CAI");
  settextstyle(0,0,1);
  bar(0,250,680,250);
  while(!kbhit())
   {
     outtextxy(230,290,"Press Enter To Start!");
     delay(40000);
     setcolor(BLACK);
     for(c=7;c&gt;=0;c--)
      {
        line(0,290+c,680,290+c);
      }
     delay(40000);
     do{
        color=rand()%15;
       }while(color==0);
     setcolor(color);
   }
  getch();
}
void outb(int y)
{
  setfillstyle(1,9);
  bar(240,y,255,y+15);
}
void out(int *y,int *num)
{
  char ch[2]={26,'\0'};
  if((*y)&lt;155){ *y=235; *num=3; outtextxy(240,*y,ch); }
  else if((*y)&gt;235){ *y=155; *num=1; outtextxy(240,*y,ch); }
       else outtextxy(240,*y,ch);
}
killtimer()
{
  disable();
  setvect(0x1c,oldtimer);
  enable();
}

qq:69558139
2004-11-22 23:33
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 
score()
{
int i,j,k,a,b,x=150,y=40;
unsigned char word[][32][4]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,
0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,
0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,
0x00,0x01,0x80,0x30,0x1F,0xFF,0xFF,0xF8,
0x00,0x03,0xA0,0x00,0x00,0x07,0xA0,0x00,
0x00,0x07,0xA0,0x00,0x00,0x0D,0x90,0x00,
0x00,0x0D,0x98,0x00,0x00,0x19,0x88,0x00,
0x00,0x39,0x8C,0x00,0x00,0x31,0x86,0x00, /*本*/
0x00,0x61,0x83,0x00,0x00,0xC1,0x83,0x80,
0x01,0x81,0x81,0xC0,0x01,0x01,0x80,0xE0,
0x02,0x01,0x86,0x78,0x0C,0xFF,0xFF,0x38,
0x18,0x01,0x80,0x10,0x20,0x01,0x80,0x00,
0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,
0x00,0x01,0x80,0x00,0x00,0x01,0x80,0x00,
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x40,0x00,0x00,0x00,0xE0,0x00,
0x0C,0x00,0xE0,0x00,0x06,0x00,0xC0,0x00,
0x03,0x00,0xC0,0x00,0x03,0x11,0x80,0x00,
0x03,0x21,0x80,0x10,0x01,0x21,0xFF,0xF8,
0x00,0x43,0x00,0x38,0x00,0x42,0x20,0x30, /*次*/
0x00,0x46,0x38,0x60,0x00,0x84,0x38,0x40,
0x00,0x88,0x38,0x80,0x00,0x88,0x38,0x00,
0x01,0x10,0x38,0x00,0x01,0x20,0x38,0x00,
0x02,0x00,0x24,0x00,0x06,0x00,0x64,0x00,
0x1E,0x00,0x64,0x00,0x0E,0x00,0x62,0x00,
0x06,0x00,0xC2,0x00,0x06,0x00,0xC3,0x00,
0x06,0x01,0x81,0x80,0x06,0x01,0x01,0xC0,
0x0E,0x02,0x00,0xE0,0x0E,0x04,0x00,0x70,
0x06,0x18,0x00,0x3C,0x00,0x30,0x00,0x18,
0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x10,0x00,0x01,0xC0,0x1C,0x00,
0x03,0x00,0x10,0x00,0x03,0x00,0x30,0x10,
0x02,0x00,0x30,0x38,0x06,0x07,0xEF,0xC0,
0x04,0x00,0x60,0x00,0x08,0x30,0x40,0x00,
0x18,0x30,0x40,0x00,0x10,0x60,0xC0,0x00,
0x3F,0xC7,0xFF,0x00,0x18,0xC1,0x82,0x00, /*练*/
0x01,0x81,0x02,0x00,0x03,0x03,0x02,0x00,
0x06,0x03,0x02,0x00,0x04,0x06,0x02,0x18,
0x08,0x07,0xFF,0xFC,0x31,0xE0,0x02,0x00,
0x3E,0x00,0x02,0x00,0x10,0x00,0x82,0x80,
0x00,0x01,0xC2,0x40,0x00,0x11,0x82,0x30,
0x01,0xE3,0x02,0x18,0x0F,0x06,0x02,0x1C,
0x3C,0x04,0x02,0x0C,0x30,0x08,0x06,0x0C,
0x00,0x10,0x76,0x04,0x00,0x20,0x1E,0x00,
0x00,0x40,0x0C,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x00,0x00,0xE0,
0x07,0xFF,0xFF,0xE0,0x00,0x00,0x00,0xC0,
0x00,0x40,0x00,0xC0,0x00,0x20,0x00,0xC0,
0x00,0x38,0x00,0xC0,0x00,0x1C,0x00,0xC0,
0x00,0x0E,0x00,0xC0,0x00,0x0E,0x00,0xC0,
0x00,0x06,0x00,0xC0,0x00,0x06,0x00,0xC0, /*习*/
0x00,0x00,0x00,0xC0,0x00,0x00,0x04,0xC0,
0x00,0x00,0x18,0xC0,0x00,0x00,0xE0,0xC0,
0x00,0x03,0x00,0xC0,0x00,0x1C,0x00,0xC0,
0x00,0x70,0x00,0xC0,0x03,0xE0,0x00,0xC0,
0x1F,0x80,0x00,0xC0,0x0E,0x00,0x00,0xC0,
0x04,0x00,0x00,0xC0,0x00,0x00,0x7F,0xC0,
0x00,0x00,0x0F,0x80,0x00,0x00,0x07,0x00,
0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,0x00,0x00,0xE2,0x00,
0x00,0x00,0xE3,0x00,0x00,0x00,0x61,0x80,
0x00,0x00,0x61,0xC0,0x00,0x00,0x60,0x80,
0x04,0x00,0x60,0x18,0x07,0xFF,0xFF,0xFC,
0x06,0x00,0x60,0x00,0x06,0x00,0x60,0x00,
0x06,0x00,0x60,0x40,0x06,0x00,0x60,0x60,
0x06,0x00,0x20,0x70,0x06,0x06,0x30,0xE0, /*成*/
0x07,0xFE,0x30,0xC0,0x06,0x06,0x30,0xC0,
0x06,0x06,0x31,0x80,0x06,0x04,0x19,0x80,
0x06,0x04,0x1B,0x00,0x06,0x04,0x1B,0x00,
0x04,0x04,0x0E,0x00,0x0C,0x0C,0x0E,0x04,
0x0C,0x0C,0x1F,0x04,0x08,0xFC,0x33,0x84,
0x08,0x38,0x61,0xCC,0x18,0x10,0xC0,0xFC,
0x10,0x01,0x80,0x3C,0x20,0x02,0x00,0x1C,
0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x80,0x0C,0x00,0x01,0xC0,0x0C,0x00,
0x01,0x80,0x0C,0x00,0x03,0x00,0x0C,0x30,
0x03,0x03,0xFF,0xC0,0x06,0x00,0x0C,0x00,
0x04,0x10,0x0C,0x20,0x0C,0x19,0xFF,0xF0,
0x08,0x30,0x0C,0x00,0x10,0x30,0x0C,0x08,
0x3F,0xE0,0x0C,0x1C,0x18,0xC7,0xF3,0xE0, /*绩*/
0x00,0x80,0x00,0x00,0x01,0x01,0x00,0x30,
0x02,0x01,0xFF,0xF0,0x06,0x01,0x00,0x20,
0x0C,0x01,0x08,0x20,0x19,0xF1,0x0C,0x20,
0x1F,0x01,0x0C,0x20,0x18,0x01,0x08,0x20,
0x00,0x01,0x08,0x20,0x00,0x01,0x18,0x20,
0x00,0x71,0x18,0x20,0x07,0x82,0x12,0x00,
0x3E,0x00,0x31,0xC0,0x18,0x00,0x60,0x70,
0x00,0x00,0xC0,0x38,0x00,0x03,0x00,0x18,
0x00,0x1C,0x00,0x08,0x00,0x00,0x00,0x00}};
unsigned char han[][24][3]={
{0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,
0x80,0x00,0x81,0x00,0x00,0xC2,0x00,0x00,
0x42,0x00,0x00,0x04,0x00,0x03,0xFF,0xE0,
0x02,0x00,0x60,0x02,0x00,0x60,0x02,0x00, /*总*/
0x60,0x02,0x00,0x60,0x02,0x00,0x60,0x03,
0xFF,0xE0,0x02,0x20,0x40,0x01,0x18,0x40,
0x09,0x8C,0x30,0x09,0x0C,0x18,0x09,0x04,
0x98,0x19,0x00,0x8C,0x31,0x00,0x88,0x21,
0x80,0xC0,0x01,0xFF,0x80,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0x18,0x10,0x1F,0xFF,0xF8,0x00,0x18,0x00,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x04,0x00,0x18,0x0C,0x3F,0xFF,0xF0,0x00,
0x18,0x20,0x0C,0x18,0x38,0x08,0x18,0x30, /*击*/
0x08,0x18,0x30,0x08,0x18,0x30,0x08,0x18,
0x30,0x08,0x18,0x30,0x08,0x18,0x30,0x0F,
0xE7,0xF0,0x00,0x00,0x30,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x81,
0x80,0x11,0x19,0x00,0x09,0x21,0x00,0x0D,
0x43,0x00,0x09,0x42,0x04,0x3F,0xFB,0xFE,
0x03,0x06,0x10,0x07,0xE6,0x10,0x0D,0x2A,
0x10,0x11,0x1A,0x10,0x21,0x12,0x30,0x01, /*数*/
0x01,0x20,0x03,0x11,0x20,0x3E,0xF1,0x20,
0x04,0x20,0xE0,0x0C,0x60,0xC0,0x03,0xC0,
0xC0,0x01,0xF1,0x60,0x03,0x12,0x38,0x0C,
0x04,0x1E,0x70,0x38,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,
0x18,0x00,0xF0,0xF8,0x0F,0x07,0x00,0x08,
0x04,0x00,0x08,0x04,0x00,0x08,0x04,0x00,
0x0F,0xE4,0x00,0x08,0x44,0x0C,0x08,0x47, /*所*/
0xF0,0x08,0x44,0x20,0x08,0x4C,0x20,0x0F,
0xCC,0x20,0x18,0x48,0x20,0x18,0x08,0x20,
0x10,0x18,0x20,0x10,0x10,0x20,0x10,0x20,
0x20,0x10,0x20,0x20,0x20,0x40,0x20,0x40,
0x80,0x20,0x41,0x00,0x20,0x02,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,
0x10,0x0F,0xFF,0xF8,0x0C,0x08,0x10,0x0C,
0x08,0x10,0x0C,0x08,0x10,0x0C,0x08,0x10,
0x0C,0x08,0x10,0x0F,0xFF,0xF0,0x08,0x08,
0x10,0x08,0x08,0x10,0x08,0x08,0x10,0x08, /*用*/
0x08,0x10,0x0F,0xFF,0xF0,0x08,0x08,0x10,
0x08,0x08,0x10,0x08,0x08,0x10,0x10,0x18,
0x10,0x10,0x18,0x10,0x20,0x18,0x10,0x20,
0x18,0xF0,0x40,0x00,0x30,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x60,0x00,0x00,0x60,0x00,0x80,0x60,0x1F,
0xC0,0x60,0x10,0x80,0x60,0x10,0x80,0x6C,
0x10,0xFF,0xF0,0x10,0x80,0x60,0x10,0x80,
0x60,0x1F,0x98,0x60,0x10,0x8C,0x60,0x10,
0x86,0x60,0x10,0x84,0x60,0x10,0x80,0x60, /*时*/
0x10,0x80,0x60,0x10,0x80,0x60,0x1F,0x80,
0x60,0x10,0x80,0x60,0x00,0x00,0x60,0x00,
0x03,0xC0,0x00,0x00,0xC0,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,
0x00,0x02,0x00,0x08,0x03,0x3F,0xF8,0x1A,
0x00,0x08,0x10,0x00,0x08,0x10,0x00,0x08,
0x10,0xFF,0x08,0x10,0x82,0x08,0x10,0x82,
0x08,0x10,0x82,0x08,0x10,0xFE,0x08,0x10, /*间*/
0x82,0x08,0x10,0x82,0x08,0x10,0x83,0x08,
0x10,0x83,0x08,0x10,0xFF,0x08,0x10,0x82,
0x08,0x10,0x00,0x08,0x10,0x00,0x08,0x10,
0x00,0x78,0x10,0x00,0x30,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x00,0x1C,0x0F,
0xFF,0xE0,0x00,0x08,0x00,0x00,0x08,0x00,
0x00,0x08,0x00,0x00,0x08,0x00,0x06,0x08, /*正*/
0x00,0x06,0x08,0x00,0x06,0x0F,0xF0,0x06,
0x08,0x00,0x06,0x08,0x00,0x06,0x08,0x00,
0x06,0x08,0x00,0x06,0x08,0x00,0x06,0x08,
0x00,0x06,0x08,0x00,0x06,0x08,0x00,0x06,
0x08,0x0C,0x39,0xF7,0xF0,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
0x00,0x00,0x06,0x00,0x00,0xC7,0xF0,0x3F,
0x08,0x60,0x04,0x10,0x40,0x0C,0x10,0x80,
0x08,0x3F,0xFC,0x08,0x58,0x88,0x18,0x98, /*缺*/
0x88,0x1F,0x98,0x88,0x18,0x9F,0xF8,0x28,
0x98,0x88,0x48,0x98,0x88,0x48,0x98,0x88,
0x08,0x97,0xF8,0x08,0x90,0x88,0x0F,0x90,
0x88,0x08,0x90,0x88,0x18,0x20,0x88,0x10,
0x40,0xF8,0x00,0x80,0x98,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,
0x00,0x10,0x0C,0x00,0x0C,0x08,0x00,0x0C,
0x88,0x00,0x05,0x18,0x08,0x01,0x17,0xFC, /*次*/
0x01,0x30,0x18,0x02,0x23,0x10,0x02,0x43,
0x20,0x04,0x43,0x00,0x04,0x83,0x00,0x04,
0x07,0x00,0x08,0x04,0x80,0x38,0x04,0x80,
0x08,0x0C,0x80,0x08,0x08,0x40,0x08,0x18,
0x60,0x18,0x10,0x30,0x18,0x20,0x18,0x08,
0xC0,0x1C,0x01,0x00,0x08,0x06,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,
0x60,0x0C,0x04,0x40,0x0C,0x04,0x40,0x09,
0x84,0x48,0x1E,0x7F,0xF0,0x10,0x04,0x40,
0x10,0x04,0x40,0x21,0x04,0x44,0x5E,0xFF, /*错*/
0xFE,0x44,0x00,0x00,0x04,0x00,0x10,0x04,
0x9F,0xF8,0x7F,0xD8,0x10,0x04,0x18,0x10,
0x04,0x18,0x10,0x04,0x1F,0xF0,0x04,0x18,
0x10,0x05,0x18,0x10,0x06,0x18,0x10,0x04,
0x1F,0xF0,0x00,0x18,0x10,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,
0x10,0x0C,0x3F,0xF8,0x06,0x30,0x10,0x06,
0x30,0x10,0x00,0x30,0x10,0x00,0x30,0x10, /*误*/
0x00,0x3F,0xF0,0x04,0x00,0x00,0x7E,0x00,
0x18,0x04,0x7F,0xE0,0x04,0x02,0x00,0x04,
0x02,0x00,0x04,0x02,0x0C,0x04,0xFF,0xF0,
0x04,0x87,0x00,0x04,0x84,0x80,0x05,0x0C,
0x40,0x06,0x18,0x60,0x04,0x30,0x30,0x04,
0x60,0x1E,0x01,0x80,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,
0x00,0x00,0x18,0x00,0x00,0x10,0x18,0x1F,
0xFF,0xE0,0x00,0x30,0x00,0x08,0x62,0x30,
0x0C,0x46,0x60,0x05,0xFC,0x40,0x01,0x09, /*率*/
0x80,0x01,0x10,0x80,0x02,0x22,0x70,0x0C,
0xC3,0x18,0x30,0xFD,0x08,0x10,0x18,0x00,
0x00,0x10,0x00,0x7F,0xFF,0xFE,0x00,0x10,
0x00,0x00,0x10,0x00,0x00,0x10,0x00,0x00,
0x10,0x00,0x00,0x18,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x10,0x1F,0xFF,0xF8,0x00,0x18,0x00,0x08,
0x18,0x20,0x04,0x18,0x70,0x02,0x18,0x40, /*平*/
0x03,0x18,0xC0,0x01,0x18,0x80,0x01,0x19,
0x00,0x00,0x1A,0x0C,0x7F,0xFF,0xFE,0x00,
0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0x18,0x00,0x00,0x18,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,
0x00,0x04,0x06,0x00,0x04,0x0C,0x00,0x04,
0x08,0x00,0x04,0x0F,0xFC,0x04,0x10,0x0C,
0x7F,0xD0,0x0C,0x04,0x20,0x0C,0x04,0x24,
0x0C,0x04,0x42,0x0C,0x04,0x03,0x0C,0x04, /*均*/
0x01,0x08,0x04,0x00,0x08,0x04,0x20,0x48,
0x05,0xC3,0x88,0x0E,0x1C,0x08,0x78,0x30,
0x08,0x20,0x20,0x18,0x00,0x00,0x18,0x00,
0x01,0xF0,0x00,0x00,0x60,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x18,0x02,0x00,0x0C,0x02,0x08,0x05,
0xFF,0xFC,0x04,0x02,0x00,0x00,0x02,0x00,
0x00,0x7F,0xF0,0x04,0x42,0x30,0x0E,0x42,
0x30,0x34,0x42,0x30,0x04,0x7F,0xF0,0x04, /*速*/
0x46,0x20,0x04,0x0E,0x00,0x04,0x1B,0xC0,
0x04,0x32,0x30,0x04,0x42,0x18,0x0C,0x82,
0x08,0x13,0x02,0x00,0x61,0x82,0x00,0x20,
0x7F,0xFE,0x00,0x1F,0xF8,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x08,
0x00,0x00,0x0C,0x00,0x08,0x08,0x0C,0x0F,
0xF7,0xF0,0x08,0x30,0xC0,0x08,0x20,0x80,
0x08,0x20,0x8C,0x0F,0xFF,0xF0,0x08,0x20, /*度*/
0x80,0x08,0x20,0x80,0x08,0x3F,0x80,0x18,
0x40,0x00,0x19,0xFF,0xE0,0x10,0x20,0xC0,
0x10,0x10,0x80,0x10,0x11,0x80,0x10,0x0B,
0x00,0x20,0x06,0x00,0x20,0x1B,0x80,0x40,
0x60,0xFC,0x47,0x80,0x38,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,
0x00,0x00,0x08,0x00,0x08,0x08,0x18,0x0F,
0xF7,0xF8,0x18,0x00,0x10,0x30,0x00,0x20,
0x00,0x00,0xC0,0x07,0xFF,0xE0,0x00,0x03,
0x00,0x00,0x04,0x00,0x00,0x18,0x00,0x00,
0x18,0x0C,0x7F,0xFF,0xFE,0x00,0x18,0x00, /*字*/
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0xF8,0x00,0x00,0x30,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x00,0xE2,0x00,0x00,0xC2,0x00,0x01,
0x81,0x00,0x01,0x01,0x00,0x03,0x00,0x80,
0x02,0x00,0xC0,0x04,0x00,0x60,0x08,0x00,
0xB8,0x17,0xFF,0xDE,0x20,0x20,0x80,0x40, /*分*/
0x60,0x80,0x00,0x60,0x80,0x00,0x40,0x80,
0x00,0x40,0x80,0x00,0xC0,0x80,0x00,0x80,
0x80,0x01,0x01,0x80,0x02,0x01,0x80,0x04,
0x0F,0x00,0x18,0x06,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,
0xC0,0x04,0x00,0x80,0x0C,0x00,0x80,0x08,
0x60,0x80,0x0F,0x80,0x80,0x18,0x0F,0xFC,
0x10,0x88,0x84,0x3F,0xC8,0x84,0x24,0x08, /*钟*/
0x84,0x44,0x08,0x84,0x04,0x08,0x84,0x04,
0x6F,0xFC,0x3F,0x88,0x84,0x04,0x00,0x80,
0x04,0x00,0x80,0x04,0x40,0x80,0x04,0x80,
0x80,0x05,0x00,0x80,0x06,0x00,0x80,0x04,
0x00,0x80,0x00,0x00,0xC0,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0xC0,0x03,0xC0,0x80,0x3E,0x00,0x80,0x02,
0x00,0x80,0x02,0x08,0xA0,0x02,0x0C,0x98, /*秒*/
0x02,0xC8,0x8C,0x3F,0x08,0x84,0x06,0x08,
0x84,0x07,0x10,0x80,0x0A,0x90,0x80,0x0A,
0xE0,0x88,0x12,0x20,0x9C,0x12,0x00,0xB0,
0x22,0x00,0x20,0x42,0x00,0x40,0x02,0x00,
0x80,0x02,0x03,0x00,0x02,0x06,0x00,0x02,
0x18,0x00,0x02,0xE0,0x00,0x00,0x00,0x00}
};
cleardevice();
gotoxy(1,1);
setfillstyle(1,2);
bar(0,0,640,480);
setcolor(WHITE);
line(0,0,640,0);
line(0,479,640,479);
setcolor(BLACK);
rectangle(121,30,520,450);
setfillstyle(1,BLACK);
bar(521,36,525,455);
bar(126,451,525,455);
setfillstyle(1,12);
bar(122,31,519,449);
for(a=0;a&lt;6;a++)
{
for(i=0;i&lt;32;i++)
for(j=0;j&lt;4;j++)
for(k=0;k&lt;8;k++)
{
if(word[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
}
x+=60;
}
y+=50; x=160;
for(a=0;a&lt;17;a++)
{
for(i=0;i&lt;24;i++)
for(j=0;j&lt;3;j++)
for(k=0;k&lt;8;k++)
{
if(han[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
}
x+=40;
if(a==9)for(i=0;i&lt;24;i++)
for(j=0;j&lt;3;j++)
for(k=0;k&lt;8;k++)
{
if(han[2][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
}
if(a==11)
for(b=9;b&gt;0;b-=7)
{
for(i=0;i&lt;24;i++)
for(j=0;j&lt;3;j++)
for(k=0;k&lt;8;k++)
{
if(han[b][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
}
x+=40;
}
if(a==16){ x+=110; a++;
for(i=0;i&lt;24;i++)
for(j=0;j&lt;3;j++)
for(k=0;k&lt;8;k++)
{
if(han[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
}
x+=30;
setcolor(YELLOW);
line(x+3,y+1,x-7,y+24);

qq:69558139
2004-11-22 23:35
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 

for(a++;a<=19;a++) { for(i=0;i<24;i++) for(j=0;j<3;j++) for(k=0;k<8;k++) { if(han[a][i][j]&(0x80>>k))putpixel(x+j*8+k,y+i,YELLOW); } x+=25; } } if(a==2||a==6||a==9||a==11||a==12){ if(a==6){ x+=130; for(i=0;i<24;i++) for(j=0;j<3;j++) for(k=0;k<8;k++) { if(han[20][i][j]&(0x80>>k))putpixel(x+j*8+k,y+i,YELLOW); } } if(a==12){ x+=130; settextstyle(0,0,2); setcolor(YELLOW); outtextxy(x+20,y+5,"%"); } y+=55; x=160; if(a==11)for(b=7;b<=8;b++) { for(i=0;i<24;i++) for(j=0;j<3;j++) for(k=0;k<8;k++) { if(han[b][i][j]&(0x80>>k))putpixel(x+j*8+k,y+i,YELLOW); } x+=40; } } } } void Run(int num) { switch(num) { case 1:Hitword();break; case 2:show();break; case 3:over();break; }

}


qq:69558139
2004-11-22 23:35
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 
void hanxian()
{
int color,d=-35,a,x=260,y=150;
char ch[2];
register s,i,j,k;
unsigned char name[][64][8]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xE0,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xF0,0x00,0x00,0x80,0x00,
0x00,0x00,0x03,0xF0,0x00,0x07,0xE0,0x00,
0x00,0x00,0x07,0xF0,0x00,0x7F,0xFC,0x00,
0x00,0x00,0x1F,0xC1,0xFF,0xFF,0xFE,0x00,
0x00,0x00,0x7F,0x01,0xFF,0x80,0x7C,0x00,
0x00,0x03,0xF8,0x00,0xF0,0x00,0x78,0x00,
0x00,0x0F,0xF8,0x00,0x70,0x00,0xF0,0x00,
0x00,0x3C,0x7C,0x00,0x70,0x00,0xF0,0x00,
0x00,0x00,0x3C,0x00,0x70,0x00,0xF0,0x00,
0x00,0x00,0x3C,0x00,0x30,0x00,0xE0,0x00,
0x00,0x00,0x3C,0x00,0x38,0x00,0xE0,0x00,
0x00,0x00,0x38,0x00,0x38,0x00,0xE0,0x00,
0x00,0x00,0x38,0x00,0x18,0x07,0xE0,0x00,
0x00,0x00,0x38,0x00,0x18,0xFF,0xE0,0x00,
0x00,0x00,0x39,0xF8,0x1F,0xFC,0x00,0x00,
0x00,0x00,0x3F,0xFC,0x0F,0x80,0x00,0x00,
0x00,0x03,0xFF,0xF0,0x08,0x00,0x00,0x00,
0x00,0x7F,0xFC,0x00,0x00,0x00,0x00,0x00,
0x1F,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,
0x3F,0xFC,0x78,0x00,0x00,0x00,0xF8,0x00,
0x1F,0xE0,0xF8,0x00,0x00,0x1F,0xFC,0x00,
0x0E,0x01,0xF8,0x00,0x03,0xFF,0xE0,0x00,
0x00,0x01,0xF8,0x01,0xFF,0xFE,0x00,0x00,
0x00,0x03,0xF8,0x00,0xFF,0xF0,0x00,0x00,
0x00,0x07,0xB8,0x00,0x00,0x70,0x00,0x00,
0x00,0x07,0xBF,0xC0,0x00,0x70,0x00,0x00,
0x00,0x0F,0x3F,0xF0,0x00,0x70,0x00,0x00,
0x00,0x1E,0x39,0xF0,0x00,0x70,0x00,0x00,
0x00,0x1C,0x38,0x70,0x00,0x70,0x00,0x00,
0x00,0x38,0x38,0x00,0x00,0x77,0xE0,0x00,
0x00,0x70,0x38,0x00,0x00,0xFF,0xF0,0x00,
0x00,0xE0,0x38,0x00,0x1F,0xFF,0xC0,0x00,
0x01,0xC0,0x38,0x00,0x7F,0xFC,0x00,0x00,
0x03,0x80,0x38,0x00,0x1F,0xF0,0x00,0x00,
0x07,0x00,0x38,0x00,0x00,0x70,0x00,0x00,
0x0E,0x00,0x38,0x00,0x00,0x70,0x00,0x00,
0x18,0x00,0x38,0x00,0x00,0x70,0x00,0x00,
0x60,0x00,0x38,0x00,0x00,0x70,0x00,0x00,
0x00,0x00,0x38,0x00,0x00,0x70,0x1F,0x80,
0x00,0x00,0x38,0x00,0x00,0x7F,0xFF,0xE0,
0x00,0x00,0x38,0x00,0x0F,0xFF,0xFF,0xF8,
0x00,0x00,0x78,0x03,0xFF,0xFF,0xFF,0xF8,
0x00,0x00,0x78,0x7F,0xFF,0x00,0x00,0x00,
0x00,0x00,0x78,0x7F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00,
0x00,0x00,0x00,0x18,0x00,0x3C,0x00,0x00,
0x00,0x00,0x00,0x1E,0x00,0x3C,0x00,0x00,
0x00,0x00,0x00,0x0F,0x00,0x3C,0x00,0x00,
0x00,0x00,0x00,0x0F,0x00,0x3C,0x00,0x00,
0x00,0x00,0x00,0x0F,0x00,0x3C,0x00,0x00,
0x00,0x00,0x00,0x0F,0x00,0x38,0x00,0x00,
0x00,0x02,0x00,0x07,0x00,0x38,0x00,0x00,
0x00,0x03,0xC0,0x07,0x00,0x38,0x00,0x00,
0x00,0x01,0xE0,0x07,0x00,0x38,0x00,0x00,
0x00,0x01,0xF0,0x07,0x00,0x38,0x00,0x00,
0x00,0x01,0xF0,0x07,0x00,0x38,0x00,0x00,
0x00,0x00,0xF0,0x07,0x00,0x38,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0x78,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0x70,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0x70,0xFF,0xF0,
0x00,0x00,0xE0,0x07,0x00,0x7F,0xFF,0xF8,
0x00,0x00,0xE0,0x07,0x3F,0xFF,0xFF,0xFC,
0x00,0x00,0xE0,0x0F,0xFF,0xFF,0xFF,0xF8,
0x00,0x00,0xE7,0xFF,0xFF,0xF0,0x00,0x00,
0x00,0x03,0xFF,0xFF,0x00,0x60,0x00,0x00,
0x03,0xFF,0xFF,0x87,0x00,0x60,0x00,0x00,
0x7F,0xFF,0xF0,0x07,0x00,0x60,0x00,0x00,
0x3F,0xFC,0xE0,0x07,0x00,0xE0,0x00,0x00,
0x1F,0x80,0xE0,0x07,0x00,0xE0,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0xE0,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0xC0,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0xC0,0x00,0x00,
0x00,0x00,0xE0,0x07,0x00,0xC0,0x00,0x00,
0x00,0x00,0xE0,0x07,0x1F,0xF0,0x00,0x00,
0x00,0x00,0xE0,0x0F,0xFF,0xE0,0x00,0x00,
0x00,0x00,0xE0,0x0F,0xF8,0x00,0x00,0x00,
0x00,0x00,0xE0,0x07,0x80,0x00,0x00,0x00,
0x00,0x00,0xE0,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x03,0xFF,0xF0,0x00,
0x00,0x00,0xE0,0x03,0xFF,0xFF,0xF8,0x00,
0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,
0x00,0x03,0xFF,0xFF,0xFF,0xF8,0x00,0x00,
0x00,0x01,0xFF,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3C,0x00,0x7F,0xC0,0x00,
0x00,0x00,0x00,0x3C,0x0F,0xFF,0xE0,0x00,
0x00,0x00,0x00,0x79,0xFF,0xFF,0xF0,0x00,
0x00,0x00,0x00,0x7F,0xFF,0xFF,0x80,0x00,
0x00,0x00,0x1F,0xFF,0xFF,0x00,0x00,0x00,
0x00,0x0F,0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x1F,0xFF,0xE0,0x00,0x00,0x00,0x00,
0x00,0x07,0xF1,0xE0,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x87,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x87,0xC0,0x00,0x00,0x00,
0x00,0x00,0x07,0x07,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0F,0x03,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0E,0x03,0xC0,0x00,0x00,0x00,
0x00,0x00,0x1C,0x03,0xC0,0x00,0x00,0x00,
0x00,0x00,0x3C,0x01,0xC0,0x00,0x00,0x00,
0x00,0x00,0x38,0x01,0xC0,0x00,0x00,0x00,
0x00,0x00,0x70,0x01,0xC1,0xFF,0x00,0x00,
0x00,0x00,0xF0,0x01,0xFF,0xFF,0x80,0x00,
0x00,0x01,0xE0,0x3F,0xFF,0xFF,0x80,0x00,
0x00,0x03,0xFF,0xFF,0xF8,0x00,0x00,0x00,
0x00,0x07,0xFF,0xF9,0xC0,0x00,0x00,0x00,
0x00,0x07,0xFE,0x01,0xC0,0x00,0x00,0x00,
0x00,0x07,0xF0,0x01,0xE0,0x00,0x00,0x00,
0x00,0x03,0x80,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xE0,0x20,0x00,0x00,
0x00,0x00,0x30,0x01,0xE0,0x3C,0x00,0x00,
0x00,0x00,0x70,0x01,0xE0,0x1F,0x00,0x00,
0x00,0x00,0x70,0x01,0xE0,0x1F,0xC0,0x00,
0x00,0x00,0xF0,0x01,0xE0,0x0F,0xE0,0x00,
0x00,0x00,0xE0,0x01,0xE0,0x07,0xF8,0x00,
0x00,0x01,0xE0,0x01,0xE0,0x03,0xFC,0x00,
0x00,0x03,0xE0,0x01,0xE0,0x01,0xFC,0x00,
0x00,0x0F,0xC0,0x01,0xE0,0x00,0xFE,0x00,
0x00,0x1F,0xC0,0x01,0xE0,0x00,0x7E,0x00,
0x00,0x3F,0x80,0x01,0xE0,0x00,0x3E,0x00,
0x00,0x3F,0x00,0x01,0xE0,0x00,0x1E,0x00,
0x00,0x1E,0x01,0x81,0xE0,0x00,0x0C,0x00,
0x00,0x1C,0x00,0xFF,0xE0,0x00,0x04,0x00,
0x00,0x18,0x00,0x7F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}};

qq:69558139
2004-11-22 23:36
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 
unsigned char word[][24][3]={{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,0x00,0x08,0x1F,0xFF,0xF8,0x00,
0xC1,0x80,0x00,0xC1,0x80,0x00,0xC1,0x80,
0x00,0xC1,0x80,0x00,0xC1,0x80,0x00,0xC1,
0x80,0x00,0xC1,0x80,0x3F,0xFF,0xFC,0x00,
0xC1,0x80,0x00,0xC1,0x80,0x00,0xC1,0x80,
0x01,0xC1,0x80,0x01,0x81,0x80,0x03,0x81,
0x80,0x07,0x01,0x80,0x0E,0x01,0x80,0x3C,
0x01,0x80,0x08,0x01,0x80,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x01,
0x80,0x06,0x03,0x80,0x0C,0x03,0x00,0x0C,
0x06,0x00,0x0C,0x06,0x70,0x7F,0xCC,0x38,
0x48,0x98,0x18,0x08,0xBF,0xFC,0x19,0x9E,
0x04,0x19,0x80,0x00,0x11,0x80,0x00,0x11,
0x1F,0xF8,0x33,0x1F,0xF8,0x1F,0x18,0x18,
0x0F,0x18,0x18,0x07,0x18,0x18,0x0F,0x98,
0x18,0x0C,0xDF,0xF8,0x18,0x1F,0xF8,0x30,
0x18,0x18,0x20,0x18,0x18,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x03,
0x00,0x0E,0x03,0x00,0x0C,0x02,0x00,0x18,
0x7F,0xFC,0x19,0xFF,0xFC,0x31,0x84,0x00,
0x33,0x0C,0x00,0x7F,0x3F,0x80,0x26,0x3F,
0x80,0x04,0x18,0x80,0x0C,0x30,0x80,0x18,
0x7F,0xF8,0x3F,0xBF,0xF8,0x3E,0x00,0x80,
0x00,0x08,0x90,0x00,0x1C,0x98,0x07,0x98,
0x98,0x3F,0x30,0x8C,0x30,0x61,0x8E,0x00,
0xE7,0x84,0x00,0x03,0x80,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xFF,0xF0,0x0F,0xFF,0xF0,0x00,
0x00,0x30,0x00,0x00,0x30,0x01,0x00,0x30,
0x03,0x80,0x30,0x01,0xE0,0x30,0x00,0xF0,
0x30,0x00,0x70,0x30,0x00,0x20,0x30,0x00,
0x02,0x30,0x00,0x1E,0x30,0x00,0xF8,0x30,
0x0F,0xE0,0x30,0x1F,0x00,0x30,0x1C,0x00,
0x30,0x00,0x00,0x60,0x00,0x07,0xE0,0x00,
0x03,0xE0,0x00,0x03,0x80,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x0C,
0x60,0x00,0x0C,0x70,0x00,0x0C,0x30,0x00,
0x04,0x00,0x0F,0xFF,0xFC,0x0C,0x06,0x00,
0x0C,0x06,0x00,0x0C,0x06,0x20,0x0C,0x06,
0x30,0x0F,0xE6,0x30,0x0C,0x66,0x60,0x0C,
0x62,0x60,0x0C,0x63,0xC0,0x0C,0x63,0xC0,
0x08,0x61,0x80,0x18,0x63,0x80,0x19,0xE3,
0xC0,0x19,0x86,0xE4,0x30,0x1C,0x7C,0x70,
0x38,0x3C,0x20,0x30,0x18,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x01,0x00,0x0E,0x01,
0x00,0x0C,0x7F,0xFC,0x08,0x7F,0xFC,0x18,
0x01,0x00,0x11,0x3F,0xF8,0x31,0xBF,0xF8,
0x3F,0x01,0x00,0x3E,0x7F,0xFE,0x06,0x7F,
0xFE,0x04,0x00,0x00,0x0C,0x3F,0xF8,0x18,
0xBF,0xF8,0x3F,0x30,0x18,0x3C,0x33,0x18,
0x00,0x33,0x18,0x00,0x33,0x18,0x1F,0xB3,
0x18,0x3F,0x07,0x60,0x20,0x0E,0xF0,0x00,
0x3C,0x3C,0x00,0xF0,0x0C,0x00,0x40,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x3F,0xFF,0xFC,0x3F,
0xFF,0xFC,0x00,0xDB,0x00,0x01,0x99,0x80,
0x03,0x99,0xC0,0x07,0x18,0x70,0x1C,0x18,
0x3E,0x3F,0xFF,0xEC,0x07,0xFF,0xE0,0x06,
0x00,0x60,0x07,0xFF,0xE0,0x07,0xFF,0xE0,
0x06,0x00,0x60,0x07,0xFF,0xE0,0x07,0xFF,
0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,
0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x0C,
0x00,0x18,0x1C,0x00,0x0C,0x18,0x00,0x0C,
0x38,0x00,0x04,0x3F,0xF8,0x00,0x60,0x08,
0x00,0x60,0x08,0x7C,0xFF,0x88,0x7D,0xFF,
0x88,0x0C,0xB0,0x88,0x0C,0x30,0x88,0x0C,
0x30,0x88,0x0C,0x3F,0x88,0x0C,0x30,0x88,
0x0C,0x30,0x88,0x0D,0x30,0x88,0x0F,0xB0,
0x88,0x0F,0x3F,0x88,0x0E,0x00,0x08,0x1C,
0x00,0x78,0x08,0x00,0x38,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x18,0x7F,0xF0,0x0C,0x60,0x30,0x0C,
0x60,0x30,0x0C,0x7F,0xF0,0x00,0x7F,0xF0,
0x00,0x60,0x30,0x00,0x60,0x30,0x3C,0x7F,
0xF0,0x3C,0x60,0x00,0x0C,0x64,0x10,0x0C,
0x6E,0x38,0x0C,0x67,0xE0,0x0C,0x61,0xC0,
0x0C,0x64,0xE0,0x0C,0x7C,0x38,0x0C,0xF8,
0x18,0x0E,0x60,0x00,0x3F,0x80,0x04,0x71,
0xFF,0xFC,0x20,0x1F,0xFC,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x0C,0x18,0x30,0x0C,
0x18,0x30,0x0C,0x18,0x30,0x0C,0x18,0x30,
0x0C,0x18,0x30,0x0C,0x18,0x30,0x0F,0xFF,
0xF0,0x0F,0xFF,0xF0,0x00,0x18,0x00,0x00,
0x18,0x00,0x18,0x18,0x18,0x18,0x18,0x10,
0x18,0x18,0x10,0x18,0x18,0x10,0x18,0x18,
0x10,0x18,0x18,0x10,0x1F,0xFF,0xF0,0x1F,
0xFF,0xF0,0x00,0x00,0x18,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xF0,0x1F,0xFF,0xF8,0x0F,0xF8,0x00,0x00,
0x38,0x00,0x00,0x60,0x80,0x00,0xC1,0xE0,
0x03,0x83,0x80,0x07,0xFE,0x00,0x04,0x38,
0x00,0x00,0x70,0xE0,0x01,0xC0,0x70,0x0F,
0x1F,0xF8,0x0F,0xFF,0xFC,0x00,0x0C,0x08,
0x02,0x0C,0x00,0x03,0x0C,0xE0,0x06,0x0C,
0x70,0x0C,0x0C,0x38,0x38,0x08,0x1C,0x10,
0x78,0x08,0x00,0x70,0x00,0x00,0x00,0x00},
{0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x01,
0x80,0x06,0x01,0x80,0x0C,0x01,0x00,0x08,
0x3F,0xFC,0x19,0x24,0x04,0x11,0xC7,0x00,
0x33,0x86,0x20,0x7F,0x0C,0x70,0x66,0x18,
0x38,0x04,0x3F,0xF8,0x0C,0x3F,0xCC,0x08,
0x04,0xC8,0x1B,0x84,0xC0,0x3F,0x84,0xC0,
0x30,0x04,0xC0,0x00,0x0C,0xC0,0x00,0xCC,
0xC0,0x0F,0xD8,0xC6,0x7E,0x18,0xC6,0x30,
0x70,0xFC,0x00,0x60,0x78,0x00,0x00,0x00}};

qq:69558139
2004-11-22 23:36
chengstone
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
帖 子:562
专家分:226
注 册:2004-4-3
收藏
得分:0 
ch[1]='\0';
cleardevice();
setfillstyle(1,1);
bar(0,0,640,480);
settextstyle(0,0,8);
randomize();
for(s=0;s&lt;10;s++)
{
 do{
     color=rand()%15;
   }while(color==1);
 setcolor(color);
 ch[0]=65+s;
 d+=65;
 outtextxy(d,400,ch);
}
setcolor(WHITE);
line(0,395,680,395);
line(0,460,680,460);
setcolor(BLACK);
rectangle(50,50,590,350);
setfillstyle(8,9);
floodfill(100,100,BLACK);
for(s=0;s&lt;5000;s++)
{
 d=rand()%640;
 a=rand()%480;
 putpixel(d,a,rand()%15);
}
rectangle(210,130,400,270);
setfillstyle(1,9);
bar(211,131,399,269);
setfillstyle(1,8);
bar(401,140,410,280);
bar(220,271,410,280);
setfillstyle(1,6);
bar(130,20,480,100);
setcolor(WHITE);
line(130,20,480,20);
line(130,20,130,100);
setcolor(BLACK);
line(130,100,480,100);
line(480,20,480,100);
line(130,45,480,45);
line(130,75,480,75);
line(170,20,170,100);
line(210,20,210,100);
line(250,20,250,100);
line(290,20,290,100);
line(330,20,330,100);
line(370,20,370,100);
line(410,20,410,100);
line(450,20,450,100);
 x=175;y=30;
for(a=0;a&lt;3;a++)
 {
 for(i=0;i&lt;64;i++)
  for(j=0;j&lt;8;j++)
   for(k=0;k&lt;8;k++)
    {
      if(name[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,YELLOW);
    }
 x+=100;
 }
 y=150; x=260;
for(a=0;a&lt;4;a++)
 {
 for(i=0;i&lt;24;i++)
  for(j=0;j&lt;3;j++)
   for(k=0;k&lt;8;k++)
    {
      if(word[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,RED);
    }
 x+=25;
 }
 y+=40; x=260;
for(;a&lt;8;a++)
 {
 for(i=0;i&lt;24;i++)
  for(j=0;j&lt;3;j++)
   for(k=0;k&lt;8;k++)
    {
      if(word[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,RED);
    }
 x+=25;
 }
 y+=40; x=260;
for(;a&lt;12;a++)
 {
 for(i=0;i&lt;24;i++)
  for(j=0;j&lt;3;j++)
   for(k=0;k&lt;8;k++)
    {
      if(word[a][i][j]&amp;(0x80&gt;&gt;k))putpixel(x+j*8+k,y+i,RED);
    }
 x+=25;
 }
}
void keysound()
{
 int i;
 for(i=120;i&lt;2000;i+=120)
   { sound(i); delay(500); nosound(); }
}
void Menu()
{
 int x,y,key,num=1;
 char ch[2]={26,'\0'};
 while(1)
 {
  hanxian();
  turn=1;
  num=1;
  setcolor(CYAN);
  settextstyle(0,0,2);
  x=240; y=155;
  outtextxy(x,y,ch);
  while(turn)
  {
   key=bioskey(0);
   switch(key)
    {
     case UP:keysound();outb(y);y-=40;num--;out(&amp;y,&amp;num);break;
     case DOWN:keysound();outb(y);y+=40;num++;out(&amp;y,&amp;num);break;
     case ESC:keysound();outb(y);y=235;num=3;out(&amp;y,&amp;num);break;
     case ENTER:keysound();turn=0;Run(num);break;
    }
  }
 }
 settextstyle(0,0,1);
 getch();
}
void main(void)
{
  if((f1=fopen("c:\\mark.txt","r"))==NULL)newfile();
  else readfile();
  fclose(f1);
  init();
  Interface();
  Menu();
  getch();
}

qq:69558139
2004-11-22 23:37
快速回复:[原创]一个CAI的程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.031353 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved