|
@@ -34,72 +34,31 @@ char display_line(const char *line) {
|
|
|
printf("%s\n", output);
|
|
|
}
|
|
|
|
|
|
-int main() {
|
|
|
- int x;
|
|
|
- int size = (sizeof(skull) / sizeof(char *));
|
|
|
-
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(skull[x]);
|
|
|
- }
|
|
|
-
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
-
|
|
|
- size = (sizeof(skullblink) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(skullblink[x]);
|
|
|
- }
|
|
|
-
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
-
|
|
|
- size = (sizeof(ghead) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(ghead[x]);
|
|
|
- }
|
|
|
-
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
-
|
|
|
- size = (sizeof(ghost) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(ghost[x]);
|
|
|
- }
|
|
|
-
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
-
|
|
|
- size = (sizeof(wolf) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(wolf[x]);
|
|
|
- }
|
|
|
-
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
-
|
|
|
- size = (sizeof(panther) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(panther[x]);
|
|
|
- }
|
|
|
+#define SHOW_IMAGE(img) \
|
|
|
+ size = (sizeof(img) / sizeof(char *)); \
|
|
|
+ for (x = 0; x < size; x++) \
|
|
|
+ display_line(img[x]); \
|
|
|
+ paws();
|
|
|
|
|
|
+void paws(void) {
|
|
|
fflush(stdout);
|
|
|
getchar();
|
|
|
printf("\n\n");
|
|
|
+}
|
|
|
|
|
|
- size = (sizeof(bat) / sizeof(char *));
|
|
|
- for (x = 0; x < size; x++) {
|
|
|
- display_line(bat[x]);
|
|
|
- }
|
|
|
+int main() {
|
|
|
+ int x;
|
|
|
+ int size;
|
|
|
|
|
|
- fflush(stdout);
|
|
|
- getchar();
|
|
|
- printf("\n\n");
|
|
|
+ SHOW_IMAGE(skull);
|
|
|
+ SHOW_IMAGE(skullblink);
|
|
|
+ SHOW_IMAGE(icu);
|
|
|
|
|
|
+ SHOW_IMAGE(ghead);
|
|
|
+ SHOW_IMAGE(ghost);
|
|
|
+ SHOW_IMAGE(wolf);
|
|
|
+ SHOW_IMAGE(panther);
|
|
|
+ SHOW_IMAGE(bat);
|
|
|
|
|
|
return 0;
|
|
|
}
|