|
@ -1,7 +1,36 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
|
|
char field[23][29]; |
|
|
|
|
|
|
|
|
int main() |
|
|
int main() |
|
|
{ |
|
|
{ |
|
|
// printf() displays the string inside quotation |
|
|
|
|
|
printf("Hello, World!"); |
|
|
|
|
|
|
|
|
while (1) |
|
|
|
|
|
{ |
|
|
|
|
|
system("clear"); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 23; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
for (int j = 0; j < 29; j++) |
|
|
|
|
|
{ |
|
|
|
|
|
field[i][j] = ' '; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 29; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
printf("|"); |
|
|
|
|
|
for (int j = 0; j < 23; j++) |
|
|
|
|
|
{ |
|
|
|
|
|
if (i == 0 || i == 29 - 1 || i == 2) |
|
|
|
|
|
printf("="); |
|
|
|
|
|
else |
|
|
|
|
|
printf("%c", field[j][i]); |
|
|
|
|
|
} |
|
|
|
|
|
printf("|"); |
|
|
|
|
|
printf("\n"); |
|
|
|
|
|
} |
|
|
|
|
|
sleep(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |