Browse Source

Konfiguration von delay function

remotes/origin/fdai7402-main-patch-42180
fdai7225 2 years ago
parent
commit
a219801978
  1. 13
      src/Umgebung.c

13
src/Umgebung.c

@ -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 g;
while((g=getchar())!=EOF){
char str[N][N];
Umgebung(str);
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");

Loading…
Cancel
Save