即:点击
菜单 |
主菜单 菜单1 菜单2 。。 |
[此贴子已经被作者于2007-7-3 9:50:43编辑过]
还没人吗?我弄了半天就一这个,是键盘控制的。很菜大家不要见笑,还有有会的帮帮忙。。。。指点指点(由于很多原因把有些字删去了,显示的东西不大美观!!。。。。。。
#include "dos.h"
#include "stdio.h"
#include "stdlib.h"
#include "graphics.h"
#include<conio.h>
void border();
void border11();
void drawmat(char *mat,int matsize,int x,int y,int color);
main(){
int gd=DETECT,gm;
registerbgidriver(EGAVGA_driver);
initgraph(&gd,&gm,"");
setbkcolor (11);
cleardevice();
/*system("\"C:\\WIN-TC\\project\\000000002.c");*/
border();
if(bioskey(0))
{cleardevice();
border11();
}
getch();
}
void border(void)
{int i,j;
char *str;
char shu148S[]={
/* 以下是 '《' 的 48点阵宋体 字模,288 byte */
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,0x08,0x20,0x00,0x00,0x00,0x00,
0x10,0x40,0x00,0x00,0x00,0x00,0x10,0x40,
0x00,0x00,0x00,0x00,0x20,0x80,0x00,0x00,
0x00,0x00,0x20,0x80,0x00,0x00,0x00,0x00,
0x41,0x00,0x00,0x00,0x00,0x00,0x41,0x00,
0x00,0x00,0x00,0x00,0x82,0x00,0x00,0x00,
0x00,0x00,0x82,0x00,0x00,0x00,0x00,0x01,
0x04,0x00,0x00,0x00,0x00,0x01,0x04,0x00,
0x00,0x00,0x00,0x02,0x08,0x00,0x00,0x00,
0x00,0x02,0x08,0x00,0x00,0x00,0x00,0x04,
0x10,0x00,0x00,0x00,0x00,0x04,0x10,0x00,
0x00,0x00,0x00,0x08,0x20,0x00,0x00,0x00,
0x00,0x08,0x20,0x00,0x00,0x00,0x00,0x10,
0x40,0x00,0x00,0x00,0x00,0x10,0x40,0x00,
0x00,0x00,0x00,0x10,0x40,0x00,0x00,0x00,
0x00,0x10,0x20,0x00,0x00,0x00,0x00,0x08,
0x20,0x00,0x00,0x00,0x00,0x08,0x10,0x00,
0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x00,
0x00,0x04,0x18,0x00,0x00,0x00,0x00,0x02,
0x08,0x00,0x00,0x00,0x00,0x02,0x08,0x00,
0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x00,
0x00,0x01,0x04,0x00,0x00,0x00,0x00,0x00,
0x82,0x00,0x00,0x00,0x00,0x00,0x82,0x00,
0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,
0x00,0x00,0x41,0x00,0x00,0x00,0x00,0x00,
0x60,0x80,0x00,0x00,0x00,0x00,0x20,0x80,
0x00,0x00,0x00,0x00,0x20,0x40,0x00,0x00,
0x00,0x00,0x10,0x40,0x00,0x00,0x00,0x00,
0x10,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,
};
char shi48S[]={
/* 以下是 '试' 的 48点阵宋体 字模,288 byte */
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,0xC0,0x00,0x00,0x00,
0x00,0x00,0xC4,0x00,0x00,0x00,0x00,0x00,
0xC2,0x00,0x00,0x80,0x00,0x00,0xC1,0x80,
0x00,0xC0,0x00,0x00,0xC1,0x80,0x00,0x70,
0x00,0x00,0xC0,0x80,0x00,0x30,0x00,0x00,
0xC0,0x80,0x00,0x30,0x00,0x00,0xC0,0x00,
0x00,0x30,0x00,0x00,0xC0,0x20,0x00,0x00,
0x00,0x00,0xC0,0x70,0x00,0x00,0x00,0x00,
0xC0,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,
0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,
0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,
0xC0,0x00,0x00,0x30,0x00,0x00,0xC0,0x00,
0x00,0x38,0x00,0x00,0xC0,0x00,0x00,0x30,
0x00,0x04,0xC0,0x00,0x00,0x30,0x00,0x0E,
0x40,0x00,0x00,0x30,0x20,0xC0,0x40,0x00,
0x00,0x30,0x00,0xC0,0x60,0x00,0x00,0x30,
0x00,0xC0,0x60,0x00,0x00,0x30,0x00,0xC0,
0x60,0x00,0x00,0x30,0x00,0xC0,0x20,0x00,
0x00,0x30,0x00,0xC0,0x20,0x00,0x00,0x30,
0x00,0xC0,0x30,0x00,0x00,0x30,0x00,0xC0,
0x30,0x00,0x00,0x30,0x00,0xC0,0x10,0x00,
0x00,0x30,0x00,0xC0,0x18,0x00,0x00,0x30,
0x00,0xC0,0x08,0x00,0x00,0x30,0x00,0xC0,
0x0C,0x00,0x00,0x30,0x80,0xC1,0x0C,0x08,
0x00,0x31,0x00,0xC8,0x06,0x08,0x00,0x32,
0x00,0xE0,0x02,0x08,0x00,0x36,0x0F,0x80,
0x03,0x08,0x00,0x3C,0x3E,0x00,0x01,0x88,
0x00,0x38,0x18,0x00,0x00,0xD8,0x00,0x30,
0x00,0x00,0x00,0x78,0x00,0x10,0x00,0x00,
0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x18,
0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char yan48S[]={
/* 以下是 '验' 的 48点阵宋体 字模,288 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,
0x00,0x06,0x00,0x00,0x00,0x01,0x80,0x04,
0x00,0x00,0x00,0x01,0x80,0x0C,0x00,0x00,
0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x01,
0x80,0x18,0x00,0x00,0x00,0x01,0x80,0x10,
0x00,0x00,0x01,0x01,0x00,0x30,0x20,0x00,
0x01,0x81,0x00,0x20,0x00,0x00,0x01,0x81,
0x00,0x60,0x10,0x00,0x01,0x83,0x00,0xC0,
0x08,0x00,0x01,0x03,0x00,0x80,0x0C,0x00,
0x01,0x03,0x01,0x00,0x06,0x00,0x01,0x03,
0x02,0x00,0x03,0x80,0x03,0x03,0x00,0x00,
0x01,0xE0,0x03,0x03,0x00,0x00,0x08,0xE0,
0x03,0x02,0x00,0x00,0x1C,0x00,0x03,0x02,
0x00,0x00,0x00,0x00,0x03,0x02,0x00,0x00,
0x00,0x00,0x02,0x06,0x00,0x00,0x00,0x00,
0x02,0x06,0x60,0x00,0x00,0x00,0x06,0x00,
0x70,0x00,0x03,0x00,0x00,0x00,0x60,0x00,
0x03,0x80,0x00,0x00,0x40,0x00,0x03,0x00,
0x00,0x00,0x42,0x04,0x03,0x00,0x00,0x00,
0x40,0x04,0x06,0x00,0x00,0x00,0xC1,0x02,
0x06,0x00,0x00,0x00,0xC1,0x03,0x04,0x00,
0x00,0x60,0xC1,0x83,0x04,0x00,0x1F,0x00,
0xC0,0x83,0x0C,0x00,0x1C,0x00,0xC0,0xC3,
0x08,0x00,0x00,0x00,0xC0,0xC3,0x08,0x00,
0x00,0x00,0x80,0xC0,0x10,0x00,0x00,0x01,
0x80,0xC0,0x10,0x00,0x00,0x01,0x80,0x00,
0x00,0x00,0x00,0x01,0x80,0x00,0x20,0x00,
0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x60,0x00,0x1E,0x00,0x00,
0x40,0xF0,0x00,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,0x00,0x00,0x00,0x00,
};
char yi48S[]={
/* 以下是 '仪' 的 48点阵宋体 字模,288 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x10,
0x00,0x00,0x00,0x0E,0x00,0x18,0x00,0x00,
0x00,0x0C,0x00,0x0C,0x00,0x00,0x00,0x0C,
0x00,0x0C,0x00,0x00,0x00,0x18,0x00,0x06,
0x06,0x00,0x00,0x18,0x00,0x06,0x07,0x00,
0x00,0x10,0x00,0x06,0x07,0x00,0x00,0x30,
0x00,0x04,0x07,0x00,0x00,0x20,0x00,0x00,
0x0E,0x00,0x00,0x60,0x04,0x00,0x0C,0x00,
0x00,0x70,0x00,0x00,0x0C,0x00,0x00,0xD0,
0x00,0x00,0x1C,0x00,0x00,0x90,0x02,0x00,
0x18,0x00,0x01,0x10,0x00,0x00,0x18,0x00,
0x01,0x10,0x01,0x00,0x30,0x00,0x02,0x10,
0x01,0x00,0x30,0x00,0x00,0x10,0x00,0x80,
0x20,0x00,0x04,0x10,0x00,0x80,0x60,0x00,
0x00,0x10,0x00,0x40,0x40,0x00,0x00,0x10,
0x00,0x40,0xC0,0x00,0x00,0x10,0x00,0x20,
0xC0,0x00,0x00,0x10,0x00,0x20,0x80,0x00,
0x00,0x10,0x00,0x11,0x80,0x00,0x00,0x10,
0x00,0x11,0x00,0x00,0x00,0x10,0x00,0x0B,
0x00,0x00,0x00,0x10,0x00,0x0E,0x00,0x00,
0x00,0x10,0x00,0x06,0x00,0x00,0x00,0x10,
0x00,0x0F,0x00,0x00,0x00,0x10,0x00,0x09,
0x80,0x00,0x00,0x10,0x00,0x10,0xC0,0x00,
0x00,0x10,0x00,0x20,0xE0,0x00,0x00,0x10,
0x00,0x40,0x70,0x00,0x00,0x30,0x00,0x80,
0x38,0x00,0x00,0x30,0x01,0x00,0x0E,0x00,
0x00,0x30,0x04,0x00,0x07,0x80,0x00,0x30,
0x08,0x00,0x03,0xE0,0x00,0x30,0x20,0x00,
0x01,0xF0,0x00,0x30,0x00,0x00,0x00,0xC0,
0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
char shu248S[]={
/* 以下是 '》' 的 48点阵宋体 字模,288 byte */
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,0x04,0x08,
0x00,0x00,0x00,0x00,0x02,0x08,0x00,0x00,
0x00,0x00,0x02,0x04,0x00,0x00,0x00,0x00,
0x01,0x04,0x00,0x00,0x00,0x00,0x01,0x02,
0x00,0x00,0x00,0x00,0x01,0x82,0x00,0x00,
0x00,0x00,0x00,0x81,0x00,0x00,0x00,0x00,
0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x40,
0x80,0x00,0x00,0x00,0x00,0x40,0x80,0x00,
0x00,0x00,0x00,0x20,0x40,0x00,0x00,0x00,
0x00,0x20,0x40,0x00,0x00,0x00,0x00,0x10,
0x20,0x00,0x00,0x00,0x00,0x10,0x20,0x00,
0x00,0x00,0x00,0x08,0x10,0x00,0x00,0x00,
0x00,0x08,0x10,0x00,0x00,0x00,0x00,0x04,
0x18,0x00,0x00,0x00,0x00,0x04,0x08,0x00,
0x00,0x00,0x00,0x02,0x08,0x00,0x00,0x00,
0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x04,
0x08,0x00,0x00,0x00,0x00,0x04,0x10,0x00,
0x00,0x00,0x00,0x08,0x10,0x00,0x00,0x00,
0x00,0x08,0x20,0x00,0x00,0x00,0x00,0x10,
0x20,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0x00,0x00,0x00,0x20,0x40,0x00,0x00,0x00,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x40,
0x80,0x00,0x00,0x00,0x00,0x40,0x80,0x00,
0x00,0x00,0x00,0x81,0x00,0x00,0x00,0x00,
0x00,0x81,0x00,0x00,0x00,0x00,0x01,0x02,
0x00,0x00,0x00,0x00,0x01,0x02,0x00,0x00,
0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,
0x02,0x04,0x00,0x00,0x00,0x00,0x02,0x08,
0x00,0x00,0x00,0x00,0x04,0x08,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,
};
char cai24S[]={
/* 以下是 '菜' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC3,
0x00,0x00,0xC2,0x00,0x7F,0xFF,0xFC,0x00,
0xC2,0x00,0x00,0xC2,0x20,0x00,0x03,0xE0,
0x00,0xFC,0x00,0x0F,0x20,0x00,0x00,0x18,
0x60,0x06,0x08,0x40,0x03,0x08,0x80,0x02,
0x19,0x00,0x00,0x1A,0x0C,0x7F,0xFD,0xF0,
0x00,0x7C,0x00,0x00,0xDA,0x00,0x01,0x99,
0x80,0x03,0x18,0xC0,0x04,0x18,0x70,0x18,
0x18,0x1C,0x60,0x18,0x00,0x00,0x00,0x00,
};
char dan24S[]={
/* 以下是 '单' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x81,
0x80,0x00,0xC1,0x00,0x00,0x42,0x00,0x00,
0x44,0x00,0x07,0xFF,0xE0,0x04,0x10,0x20,
0x04,0x10,0x20,0x04,0x10,0x20,0x07,0xFF,
0xE0,0x04,0x10,0x20,0x04,0x10,0x20,0x04,
0x10,0x20,0x07,0xFF,0xE0,0x04,0x10,0x00,
0x00,0x10,0x04,0x7F,0xFF,0xFE,0x00,0x10,
0x00,0x00,0x10,0x00,0x00,0x10,0x00,0x00,
0x10,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
};
char shu324S[]={
/* 以下是 '《' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x28,0x00,0x00,0x48,0x00,
0x00,0x50,0x00,0x00,0x90,0x00,0x01,0xA0,
0x00,0x01,0x20,0x00,0x03,0x20,0x00,0x02,
0x40,0x00,0x06,0x40,0x00,0x04,0x80,0x00,
0x02,0x40,0x00,0x02,0x40,0x00,0x03,0x20,
0x00,0x01,0x20,0x00,0x01,0x10,0x00,0x00,
0x90,0x00,0x00,0x88,0x00,0x00,0x48,0x00,
0x00,0x4C,0x00,0x00,0x00,0x00,0x00,0x00,
};
char zhu24S[]={
/* 以下是 '主' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,
0x00,0x00,0x30,0x00,0x00,0x18,0x00,0x00,
0x18,0x00,0x00,0x10,0x08,0x1F,0xFF,0xFC,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0x18,0x20,0x0F,0xFF,0xF0,0x00,0x18,0x00,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x08,0x7F,
0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
};
char shu424S[]={
/* 以下是 '》' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x22,0x00,0x00,0x12,0x00,0x00,0x11,
0x00,0x00,0x09,0x00,0x00,0x08,0x80,0x00,
0x04,0x80,0x00,0x04,0x40,0x00,0x02,0x40,
0x00,0x02,0x20,0x00,0x01,0x20,0x00,0x02,
0x20,0x00,0x02,0x40,0x00,0x04,0x40,0x00,
0x04,0x80,0x00,0x08,0x80,0x00,0x09,0x00,
0x00,0x11,0x00,0x00,0x12,0x00,0x00,0x22,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
setcolor(0);
setlinestyle(0,0,3);
line(0,0,639,0);
line(0,0,0,479);
line(639,0,639,479);
line(0,479,639,479);
drawmat(shu148S,48,45,100,1);
drawmat(shi48S,48,395,100,1);
drawmat(yan48S,48,445,100,1);
drawmat(yi48S,48,495,100,1);
drawmat(shu248S,48,545,100,1);
setfillstyle(1,10);
bar(265,335,365,390);
drawmat(cai24S,24,290,350,1);
drawmat(dan24S,24,320,350,1);
}
void border11(void)
{int ii,jj;
char *str1;
char shu324S[]={
/* 以下是 '《' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x28,0x00,0x00,0x48,0x00,
0x00,0x50,0x00,0x00,0x90,0x00,0x01,0xA0,
0x00,0x01,0x20,0x00,0x03,0x20,0x00,0x02,
0x40,0x00,0x06,0x40,0x00,0x04,0x80,0x00,
0x02,0x40,0x00,0x02,0x40,0x00,0x03,0x20,
0x00,0x01,0x20,0x00,0x01,0x10,0x00,0x00,
0x90,0x00,0x00,0x88,0x00,0x00,0x48,0x00,
0x00,0x4C,0x00,0x00,0x00,0x00,0x00,0x00,
};
char zhu24S[]={
/* 以下是 '主' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,
0x00,0x00,0x30,0x00,0x00,0x18,0x00,0x00,
0x18,0x00,0x00,0x10,0x08,0x1F,0xFF,0xFC,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,
0x18,0x20,0x0F,0xFF,0xF0,0x00,0x18,0x00,
0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,
0x00,0x00,0x18,0x00,0x00,0x18,0x08,0x7F,
0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,
};
char cai24S[]={
/* 以下是 '菜' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC3,
0x00,0x00,0xC2,0x00,0x7F,0xFF,0xFC,0x00,
0xC2,0x00,0x00,0xC2,0x20,0x00,0x03,0xE0,
0x00,0xFC,0x00,0x0F,0x20,0x00,0x00,0x18,
0x60,0x06,0x08,0x40,0x03,0x08,0x80,0x02,
0x19,0x00,0x00,0x1A,0x0C,0x7F,0xFD,0xF0,
0x00,0x7C,0x00,0x00,0xDA,0x00,0x01,0x99,
0x80,0x03,0x18,0xC0,0x04,0x18,0x70,0x18,
0x18,0x1C,0x60,0x18,0x00,0x00,0x00,0x00,
};
char dan24S[]={
/* 以下是 '单' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x81,
0x80,0x00,0xC1,0x00,0x00,0x42,0x00,0x00,
0x44,0x00,0x07,0xFF,0xE0,0x04,0x10,0x20,
0x04,0x10,0x20,0x04,0x10,0x20,0x07,0xFF,
0xE0,0x04,0x10,0x20,0x04,0x10,0x20,0x04,
0x10,0x20,0x07,0xFF,0xE0,0x04,0x10,0x00,
0x00,0x10,0x04,0x7F,0xFF,0xFE,0x00,0x10,
0x00,0x00,0x10,0x00,0x00,0x10,0x00,0x00,
0x10,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
};
char shu424S[]={
/* 以下是 '》' 的 24点阵宋体 字模,72 byte */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x22,0x00,0x00,0x12,0x00,0x00,0x11,
0x00,0x00,0x09,0x00,0x00,0x08,0x80,0x00,
0x04,0x80,0x00,0x04,0x40,0x00,0x02,0x40,
0x00,0x02,0x20,0x00,0x01,0x20,0x00,0x02,
0x20,0x00,0x02,0x40,0x00,0x04,0x40,0x00,
0x04,0x80,0x00,0x08,0x80,0x00,0x09,0x00,
0x00,0x11,0x00,0x00,0x12,0x00,0x00,0x22,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};
setcolor(4);
setlinestyle(0,0,3);
line(0,0,639,0);
line(0,0,0,479);
line(639,0,639,479);
line(0,479,639,479);
drawmat(shu324S,24,270,100,1);
drawmat(zhu24S,24,295,100,1);
drawmat(cai24S,24,320,100,1);
drawmat(dan24S,24,345,100,1);
drawmat(shu424S,24,370,100,1);
}
void drawmat(char *mat,int matsize,int x,int y,int color)
/*依次:字模指针、点阵大小、起始坐标(x,y)、颜色*/
{int i,j,k,n;
n=(matsize-1)/8+1;
for(j=0;j<matsize;j++)
for(i=0;i<n;i++)
for(k=0;k<8;k++)
if(mat[j*n+i]&(0x80>>k)) /*测试为1的位则显示*/
putpixel(x+i*8+k,y+j,color);
}