C++ program to draw a color-filled ellipse using the fillellipse and sector function
gd.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    setcolor(15);
    fillellipse(150, 100, 100, 50);
    delay(5000);
    return 0;
}
Output
godarda@gd:~$ g++ gd.cpp -lgraph
godarda@gd:~$ ./a.out
Comments and Reactions