#include <graphics.h> int main() { int gd = 0, gm = 9; initgraph(&gd, &gm, NULL); setcolor(15); rectangle(50, 50, 200, 200); delay(5000); return 0; }
codeaft@codeaft:~$ g++ codeaft.cpp -lgraphcodeaft@codeaft:~$ ./a.out