typedef unsigned char BYTE;
BYTE Ball[] = { /* bitmap silver ball */
15, 13,
0, 0, 0, 0, 10,11, 11, 11, 11, 11, 10, 0, 0, 0, 0,
0, 0, 10, 12, 13, 14, 13, 13, 13, 14, 14, 12, 10, 0, 0,
0, 11, 12, 14, 14, 15, 16, 16, 14, 13, 12, 13, 12, 10, 0,
10, 12, 14, 16, 18, 20, 21, 21, 18, 14, 11, 11, 13, 12, 0,
12, 14, 15, 18, 21, 21, 21, 19, 15, 11, 8, 9, 11, 14, 11,
12, 14, 16, 19, 20, 19, 18, 15, 11, 9, 8, 8, 11, 15, 12,
13, 14, 15, 17, 18, 16, 14, 11, 9, 8, 8, 9, 11, 15, 13,
12, 14, 14, 14, 13, 11, 9, 8, 7, 7, 8, 10, 13, 15, 13,
12, 12, 12, 9, 8, 7, 7, 8, 9, 10, 12, 14, 14, 12,
10, 12, 12, 9, 9, 8, 9, 9, 10, 12, 13, 15, 15, 13, 10,
0, 11, 12, 13, 13, 13, 14, 15, 15, 14, 11, 0,
0, 0, 11, 12, 13, 13, 13, 14, 15, 14, 14, 12, 10, 0, 0,
0, 0, 0, 10, 10, 11, 11, 12, 12, 11, 11, 0, 0,
};
typedef struct { BYTE Ballk[197];} Ballk1;
main() {
int i;
clrscr();
for(i=0; i<197 ; i++){
Ballk1.Ballk=Ball;
}
/* struct Ballk1 Ballk[1]; */
printf("%d \n",Ballk1.Ballk);
getch();
return (0);
}
ช่วยดูด้วยครับว่าผิดตรงไหน ภาษาซีครับ
BYTE Ball[] = { /* bitmap silver ball */
15, 13,
0, 0, 0, 0, 10,11, 11, 11, 11, 11, 10, 0, 0, 0, 0,
0, 0, 10, 12, 13, 14, 13, 13, 13, 14, 14, 12, 10, 0, 0,
0, 11, 12, 14, 14, 15, 16, 16, 14, 13, 12, 13, 12, 10, 0,
10, 12, 14, 16, 18, 20, 21, 21, 18, 14, 11, 11, 13, 12, 0,
12, 14, 15, 18, 21, 21, 21, 19, 15, 11, 8, 9, 11, 14, 11,
12, 14, 16, 19, 20, 19, 18, 15, 11, 9, 8, 8, 11, 15, 12,
13, 14, 15, 17, 18, 16, 14, 11, 9, 8, 8, 9, 11, 15, 13,
12, 14, 14, 14, 13, 11, 9, 8, 7, 7, 8, 10, 13, 15, 13,
12, 12, 12, 9, 8, 7, 7, 8, 9, 10, 12, 14, 14, 12,
10, 12, 12, 9, 9, 8, 9, 9, 10, 12, 13, 15, 15, 13, 10,
0, 11, 12, 13, 13, 13, 14, 15, 15, 14, 11, 0,
0, 0, 11, 12, 13, 13, 13, 14, 15, 14, 14, 12, 10, 0, 0,
0, 0, 0, 10, 10, 11, 11, 12, 12, 11, 11, 0, 0,
};
typedef struct { BYTE Ballk[197];} Ballk1;
main() {
int i;
clrscr();
for(i=0; i<197 ; i++){
Ballk1.Ballk=Ball;
}
/* struct Ballk1 Ballk[1]; */
printf("%d \n",Ballk1.Ballk);
getch();
return (0);
}