DEV/DEV1.1/TP28/test.c

21 lines
411 B
C
Raw Normal View History

2024-12-10 12:52:05 +01:00
# include <stdio.h>
# include <stdlib.h>
2025-01-07 15:07:12 +01:00
void sierpinski(unsigned int n) {
if (n == 0) {
DessinerSegment(100,800,800,800);
DessinerSegment(450,100,100,800);
DessinerSegment(450,100,800,800);
}
/* TODO */
2024-12-10 12:52:05 +01:00
}
2025-01-07 15:07:12 +01:00
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;
2024-12-10 12:52:05 +01:00
}