I have been going through this: https://www.geeksforgeeks.org/draw-circle-c-graphics/ and for some reason it seems to not be working, I'm using vs 2019, I have the dependency's, no errors there, it seems its just the two quotes in initgraph(&gd, &gm, "");
error: E0167 argument of type "const char *" is incompatible with parameter of type "char *"
The third argument to
initgraphshould be achar*but in C++,""is aconst char[1].You can get around that problem by creating a
char[1]and use that as an argument instead: