int main (void) { 
 
 
 
 int x , y; 
 
 COLORREF jaune = RGB ( 255,255,0 ) ; . 
 
 COLORREF bleu clair = RGB ( 173,216,230 ) " 
 3 
 Ajoutez le code, " SetConsoleTitle ( " ConGraphics "); 
 
 HWND hWnd = FindWindow (NULL, " ConGraphics " ) ; 
 
 hdc hdc = GetDC ( hWnd ) ; 
 
 //dessiner une courbe sinusoïdale jaune 
 
 pour ( x = 0; x < 700; x + +) { 
 
 
 
 //centre Y = 200 pixels 
 
 y = (int) (sin ( x/100.0 ) * 100 + 200); . 
 
 SetPixel ( hdc, x , y, jaune) " 
 4 
 termine en tapant " //dessiner la ligne médiane 
 
 for (x = 0; x < 700; x + +) { 
 
 
 
 SetPixel ( hdc, x , 200, bleu clair ) ; 
 
 } 
 
 ReleaseDC ( hWnd , HDC ) ; 
 
 DeleteDC ( hDC ) ; 
 
 getchar (); . //attendre 
 
 return 0 "