26 lines
526 B
C
26 lines
526 B
C
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include<graph.h>
|
|
|
|
int main(void){
|
|
InitialiserGraphique();
|
|
CreerFenetre(10,10,1700,1000);
|
|
couleur c=CouleurParNom("red");
|
|
ChoisirCouleurDessin(c);
|
|
RemplirRectangle(1300,100,300,200);
|
|
c=CouleurParNom("purple");
|
|
ChoisirCouleurDessin(c);
|
|
RemplirRectangle(1300,400,300,200);
|
|
|
|
while(1){
|
|
if(SourisCliquee()==1){
|
|
if(_X>=1300&&_Y>=100&&_X<=1600&&_Y<=300){
|
|
return EXIT_SUCCESS;
|
|
}
|
|
if(_X>=1300&&_Y>=300&&_X>=&&_Y<=){
|
|
return EXIT_SUCCESS;
|
|
}
|
|
}
|
|
}
|
|
}
|