Citation :
#include <stdio.h>
#include <graphics.h>
void main (void)
{
int GraphDriver = VGA; // driver graphique
int GraphMode = VGAHI; // mode graphique
int Res;
// initialisation
initgraph(&GraphDriver, &GraphMode, "" );
Res = graphresult();
closegraph();
if (!Res)
printf ("Initialisation reussie !\n" );
else
printf ("Erreur d'initialisation : %d\n", Res);
}
|