Browse Source

delay funktion

remotes/origin/fdai7402-main-patch-42180
fdai7225 2 years ago
parent
commit
33e989bd6b
  1. 15
      src/Umgebung.c

15
src/Umgebung.c

@ -3,14 +3,27 @@
#include<stdio.h>
#include<string.h>
#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);
re 0;
}
void delay(int ms){
clock_t start = clock();
while (clock()< start + ms);
}
void Umgebung(char str[N][N]){
system("cls");
@ -28,6 +41,6 @@ void Umgebung(char str[N][N]){
}
printf("\n");
}
delay(1000);
printf("\n");
}
Loading…
Cancel
Save