int main
(void ) op
{
int x , y ;
COLORREF gele
= RGB ( 255,255,0 ) ; .
COLORREF lichtblauw = RGB ( 173216230 ) "
3
Voeg de code , " SetConsoleTitle ( " ConGraphics " ) ;
HWND hWnd = FindWindow ( NULL , " ConGraphics " ) ;
HDC hDC
= GetDC ( hWnd ) ;
//Teken een gele sinuskromme
voor ( x = 0 ; x < 700 ; x + + ) op Twitter
{
//center op y = 200 pixels
y = ( int ) ( sin ( x/100.0 ) * 100 + 200 ) ; .
SetPixel
( hDC , x , y , geel ) "
Finish door te typen 4 , " //trek middenlijn
voor ( x = 0 ; x < 700 ; x + + ) op Twitter
{
SetPixel
( hDC , x , 200 , lichtblauw ) ;
}
ReleaseDC ( hWnd , hDC ) ;
DeleteDC
( hDC ) ;
getchar ( ) op ; . //wacht
return 0
"