C++ program to draw 'S' character using the arc function
gd.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    arc(100, 100, 90, 360, 30);
    arc(100, 160, 270, 0, 30);
    delay(5000);
    return 0;
}
Output
godarda@gd:~$ g++ gd.cpp -lgraph
godarda@gd:~$ ./a.out
Comments and Reactions