各位帮我读下这个程序!!
#include<dos.h>#include<conio.h>
#include<math.h>
#include<stdlib.h>
main()
{ int i,j;
int heart[104][121] = {0}; /*定义图形*/
union REGS inregs,outregs; /*定义共用体*/
unsigned char far *buffer = (char far *)0xA0000000L;
for(j = 89;j <= 95;j ++) /*定义心的颜色*/
heart[0][j] = 1;
for(j = 20;j <= 33;j ++)
heart[1][j] = 1;
for(j = 84;j <= 101;j ++)
heart[1][j] = 1;
for(j = 15;j <= 37;j ++)
heart[2][j] = 1;
for(j = 81;j <= 103;j ++)
heart[2][j] = 1;
for(j = 12;j <= 42;j ++)
heart[3][j] = 1;
for(j = 78;j <= 106;j ++)
heart[3][j] = 1;
for(j = 11;j <= 45;j ++)
heart[4][j] = 1;
for(j = 77;j <= 107;j ++)
heart[4][j] = 1;
for(j = 10;j <= 49;j ++)
heart[5][j] = 1;
for(j = 73;j <= 109;j ++)
heart[5][j] = 1;
for(j = 9;j <= 50;j ++)
heart[6][j] = 1;
for(j = 71;j <= 110;j ++)
heart[6][j] = 1;
for(j = 7;j <= 54;j ++)
heart[7][j] = 1;
for(j = 69;j <= 112;j ++)
heart[7][j] = 1;
for(j = 6;j <= 55;j ++)
heart[8][j] = 1;
for(j = 67;j <= 113;j ++)
heart[8][j] = 1;
for(j = 5;j <= 58;j ++)
heart[9][j] = 1;
for(j = 65;j <= 114;j ++)
heart[9][j] = 1;
for(j = 4;j <= 59;j ++)
heart[10][j] = 1;
for(j = 63;j <= 115;j ++)
heart[10][j] = 1;
for(j = 4;j <= 60;j ++)
heart[11][j] = 1;
for(j = 62;j <= 116;j ++)
heart[11][j] = 1;
for(j = 3;j <= 116;j ++)
heart[12][j] = 1;
for(j = 3;j <= 117;j ++)
heart[13][j] = 1;
for(j = 3;j <= 117;j ++)
heart[14][j] = 1;
for(j = 2;j <= 118;j ++)
heart[15][j] = 1;
for(j = 2;j <= 118;j ++)
heart[16][j] = 1;
for(j = 1;j <= 118;j ++)
heart[17][j] = 1;
for(j = 1;j <= 118;j ++)
heart[18][j] = 1;
for(j = 1;j <= 119;j ++)
heart[19][j] = 1;
for(j = 1;j <= 119;j ++)
heart[20][j] = 1;
for(j = 1;j <= 119;j ++)
heart[21][j] = 1;
for(j = 0;j <= 120;j ++)
heart[22][j] = 1;
for(j = 1;j <= 120;j ++)
heart[23][j] = 1;
for(j = 1;j <= 120;j ++)
heart[24][j] = 1;
for(j = 0;j <= 120;j ++)
heart[25][j] = 1;
for(j = 0;j <= 120;j ++)
heart[26][j] = 1;
for(j = 0;j <= 120;j ++)
heart[27][j] = 1;
for(j = 0;j <= 120;j ++)
heart[28][j] = 1;
for(j = 0;j <= 120;j ++)
heart[29][j] = 1;
for(j = 0;j <= 120;j ++)
heart[30][j] = 1;
for(j = 1;j <= 120;j ++)
heart[31][j] = 1;
for(j = 1;j <= 119;j ++)
heart[32][j] = 1;
for(j = 1;j <= 119;j ++)
heart[33][j] = 1;
for(j = 0;j <= 119;j ++)
heart[34][j] = 1;
for(j = 0;j <= 119;j ++)
heart[35][j] = 1;
for(j = 1;j <= 119;j ++)
heart[36][j] = 1;
for(j = 1;j <= 119;j ++)
heart[37][j] = 1;
for(j = 1;j <= 118;j ++)
heart[38][j] = 1;
for(j = 2;j <= 118;j ++)
heart[39][j] = 1;
for(j = 3;j <= 118;j ++)
heart[40][j] = 1;
for(j = 3;j <= 118;j ++)
heart[41][j] = 1;
for(j = 3;j <= 118;j ++)
heart[42][j] = 1;
for(j = 3;j <= 118;j ++)
heart[43][j] = 1;
for(j = 4;j <= 117;j ++)
heart[44][j] = 1;
for(j = 4;j <= 117;j ++)
heart[45][j] = 1;
for(j = 4;j <= 117;j ++)
heart[46][j] = 1;
for(j = 5;j <= 116;j ++)
heart[47][j] = 1;
for(j = 5;j <= 116;j ++)
heart[48][j] = 1;
for(j = 5;j <= 116;j ++)
heart[49][j] = 1;
for(j = 6;j <= 116;j ++)
heart[50][j] = 1;
for(j = 7;j <= 116;j ++)
heart[51][j] = 1;
for(j = 7;j <= 116;j ++)
heart[52][j] = 1;
for(j = 8;j <= 115;j ++)
heart[53][j] = 1;
for(j = 8;j <= 115;j ++)
heart[54][j] = 1;
for(j = 9;j <= 115;j ++)
heart[55][j] = 1;
for(j = 10;j <= 114;j ++)
heart[56][j] = 1;
for(j = 10;j <= 114;j ++)
heart[57][j] = 1;
for(j = 10;j <= 114;j ++)
heart[58][j] = 1;
for(j = 11;j <= 114;j ++)
heart[59][j] = 1;
for(j = 11;j <= 113;j ++)
heart[60][j] = 1;
for(j = 12;j <= 112;j ++)
heart[61][j] = 1;
for(j = 13;j <= 111;j ++)
heart[62][j] = 1;
for(j = 13;j <= 111;j ++)
heart[63][j] = 1;
for(j = 14;j <= 110;j ++)
heart[64][j] = 1;
for(j = 15;j <= 110;j ++)
heart[65][j] = 1;
for(j = 16;j <= 110;j ++)
heart[66][j] = 1;
for(j = 17;j <= 109;j ++)
heart[67][j] = 1;
for(j = 17;j <= 108;j ++)
heart[68][j] = 1;
for(j = 18;j <= 107;j ++)
heart[69][j] = 1;
for(j = 19;j <= 107;j ++)
heart[70][j] = 1;
for(j = 20;j <= 106;j ++)
heart[71][j] = 1;
for(j = 21;j <= 106;j ++)
heart[72][j] = 1;
for(j = 21;j <= 106;j ++)
heart[73][j] = 1;
for(j = 22;j <= 105;j ++)
heart[74][j] = 1;
for(j = 23;j <= 105;j ++)
heart[75][j] = 1;
for(j = 24;j <= 104;j ++)
heart[76][j] = 1;
for(j = 25;j <= 103;j ++)
heart[77][j] = 1;
for(j = 26;j <= 102;j ++)
heart[78][j] = 1;
for(j = 27;j <= 100;j ++)
heart[79][j] = 1;
for(j = 28;j <= 100;j ++)
heart[80][j] = 1;
for(j = 28;j <= 98;j ++)
heart[81][j] = 1;
for(j = 29;j <= 97;j ++)
heart[82][j] = 1;
for(j = 31;j <= 97;j ++)
heart[83][j] = 1;
for(j = 33;j <= 96;j ++)
heart[84][j] = 1;
for(j = 33;j <= 96;j ++)
heart[85][j] = 1;
for(j = 36;j <= 94;j ++)
heart[86][j] = 1;
for(j = 36;j <= 93;j ++)
heart[87][j] = 1;
for(j = 37;j <= 92;j ++)
heart[88][j] = 1;
for(j = 38;j <= 91;j ++)
heart[89][j] = 1;
for(j = 40;j <= 90;j ++)
heart[90][j] = 1;
for(j = 41;j <= 90;j ++)
heart[91][j] = 1;
for(j = 42;j <= 88;j ++)
heart[92][j] = 1;
for(j = 43;j <= 87;j ++)
heart[93][j] = 1;
for(j = 46;j <= 86;j ++)
heart[94][j] = 1;
for(j = 46;j <= 84;j ++)
heart[95][j] = 1;
for(j = 49;j <= 80;j ++)
heart[96][j] = 1;
for(j = 49;j <= 77;j ++)
heart[97][j] = 1;
for(j = 52;j <= 76;j ++)
heart[98][j] = 1;
for(j = 52;j <= 76;j ++)
heart[99][j] = 1;
for(j = 56;j <= 74;j ++)
heart[100][j] = 1;
for(j = 58;j <= 72;j ++)
heart[101][j] = 1;
for(j = 61;j <= 66;j ++)
heart[102][j] = 1;
heart[103][65] = 1;
inregs.h.ah = 0; /*高位取0*/
inregs.h.al = 0x13; /*低位16进制*/
int86(0x10,&inregs,&outregs);
while(!kbhit()) /*判段是否有键按下 */
{ for(i = 0;i <= 103;i ++)
for(j = 0;j <= 120;j ++)
if(heart[i][j])
buffer[((i + 50) << 8) + ((i + 50) << 6) + j + 100] = (int)(130 * cos(i) * cos(j)
+ sin(i) * sin (j));
}
inregs.h.ah = 0;
inregs.h.al = 0x03;
int86(0x10,&inregs,&outregs);
}
解释越详细越好!谢谢谢!!!