|
@ -1,16 +1,23 @@ |
|
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS |
|
|
|
|
|
#define re return |
|
|
#include<stdio.h> |
|
|
#include<stdio.h> |
|
|
#include<string.h> |
|
|
#include<string.h> |
|
|
|
|
|
#include<stdlib.h> |
|
|
#define N 40 |
|
|
#define N 40 |
|
|
void Umgebung(char str[N][N]); |
|
|
void Umgebung(char str[N][N]); |
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
|
|
|
|
|
|
char str[N][N]; |
|
|
char str[N][N]; |
|
|
Umgebung(str); |
|
|
Umgebung(str); |
|
|
|
|
|
re 0; |
|
|
} |
|
|
} |
|
|
void Umgebung(char str[N][N]){ |
|
|
void Umgebung(char str[N][N]){ |
|
|
|
|
|
system("cls"); |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
printf("\tHerzlichen Willkommen zum Spiel \n"); |
|
|
printf("\tHerzlichen Willkommen zum Spiel \n"); |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
|
|
|
|
|
|
for (int i=0;i<=N;i++){ |
|
|
for (int i=0;i<=N;i++){ |
|
|
for(int j=0;j<=N;j++){ |
|
|
for(int j=0;j<=N;j++){ |
|
|
if((i==0)||(j==0)||(i==N)||(j==N)){ |
|
|
if((i==0)||(j==0)||(i==N)||(j==N)){ |
|
|