|
|
@ -5,27 +5,32 @@ |
|
|
|
#include<stdlib.h> |
|
|
|
#include<time.h> |
|
|
|
#include<stdbool.h> |
|
|
|
#include<ConditionalMacros.h> |
|
|
|
|
|
|
|
#define N 40 |
|
|
|
void Umgebung(char str[N][N]); |
|
|
|
void delay(int ms); |
|
|
|
|
|
|
|
int main(){ |
|
|
|
|
|
|
|
|
|
|
|
char str[N][N]; |
|
|
|
Umgebung(str); |
|
|
|
|
|
|
|
char g; |
|
|
|
while((g=getchar())!=EOF){ |
|
|
|
|
|
|
|
|
|
|
|
char str[N][N]; |
|
|
|
Umgebung(str); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
re 0; |
|
|
|
} |
|
|
|
void delay(int ms){ |
|
|
|
clock_t start = clock(); |
|
|
|
while (clock()< start + ms); |
|
|
|
while (clock() < start + ms); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
void Umgebung(char str[N][N]){ |
|
|
|
|
|
|
|
system("cls"); |
|
|
|
printf("\n"); |
|
|
|
printf("\tHerzlichen Willkommen zum Spiel \n"); |
|
|
|