C++ program to draw a Pixel with given coordinates
gd.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    putpixel(50, 50, 15);
    delay(2000);
    return 0;
}
Output
godarda@gd:~$ g++ gd.cpp -lgraph
godarda@gd:~$ ./a.out
Comments and Reactions