DEV/DEV1.1/TP28/test.c
Simoes Lukas 59f7eead89 A
2025-01-07 15:07:12 +01:00

21 lines
411 B
C

# include <stdio.h>
# include <stdlib.h>
void sierpinski(unsigned int n) {
if (n == 0) {
DessinerSegment(100,800,800,800);
DessinerSegment(450,100,100,800);
DessinerSegment(450,100,800,800);
}
/* TODO */
}
int main(int argc, char** argv) {
InitialiserGraphique();
CreerFenetre(200, 200, 900, 900);
sierpinski((int) strtol(argv[1], NULL, 10));
while (1) {
/* Infini */
}
return EXIT_SUCCESS;
}