Transférer les fichiers vers 'grille.c'
This commit is contained in:
parent
fda71f8243
commit
84759f2e50
@ -2,16 +2,34 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <graph.h>
|
#include <graph.h>
|
||||||
|
|
||||||
void creer_grille(void){
|
int* creer_grille(void){
|
||||||
CreerFenetre(100,100,600,400);
|
int* Grille=NULL;
|
||||||
|
Grille=(int*) malloc(40*60*sizeof(int));
|
||||||
|
return Grille;
|
||||||
|
}
|
||||||
|
|
||||||
|
void creer_grille_graph(){
|
||||||
|
int x=200,y=200;
|
||||||
|
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
||||||
|
DessinerRectangle(x,y,1200,1000)
|
||||||
|
DessinerRectangle(x,y,900,600);
|
||||||
|
for(x=200;x<1100;x=x+15){
|
||||||
|
DessinerSegment(x,y,x,800);
|
||||||
|
}
|
||||||
|
x=200;
|
||||||
|
y=200;
|
||||||
|
for(y=200;y<800;y=y+15){
|
||||||
|
DessinerSegment(x,y,1100,y);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void){
|
int main(void){
|
||||||
char** x;
|
char x;
|
||||||
InitialiserGraphique();
|
InitialiserGraphique();
|
||||||
creer_grille();
|
CreerFenetre(0,0,1300,1300);
|
||||||
while(!SourisCliquee()){
|
creer_grille_graph();
|
||||||
|
while(x != 'q'){
|
||||||
scanf("%c",&x);
|
scanf("%c",&x);
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user