30 Novembre
This commit is contained in:
parent
008ce05b82
commit
3a0e4b5192
12
DEV1.1/TP14:BiblioGraph/exemple.c
Normal file
12
DEV1.1/TP14:BiblioGraph/exemple.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(10,10,500,500);
|
||||
EcrireTexte(10,100,"Hello World !",2);
|
||||
Touche();
|
||||
FermerGraphique();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
16
DEV1.1/TP14:BiblioGraph/fenetre.c
Normal file
16
DEV1.1/TP14:BiblioGraph/fenetre.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
#include<stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(10,10,480,270);
|
||||
int touche;
|
||||
while(!ToucheEnAttente){}
|
||||
touche=Touche();
|
||||
if(touche==0xff80){
|
||||
FermerGraphique();
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
16
DEV1.1/TP14:BiblioGraph/formes.c
Normal file
16
DEV1.1/TP14:BiblioGraph/formes.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
#include<stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(10,10,480,270);
|
||||
int touche;
|
||||
while(!ToucheEnAttente){}
|
||||
touche=Touche();
|
||||
if(touche==0xff80){
|
||||
FermerGraphique();
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user