Actually you can use graphics.h
on the lastest version of Visual Studio
- Download
graphics.h
andgraphics.lib
files in https://github.com/ahuynh359/Graphics - Drag these two files and drop to your sub project. For example if my project named
Project1
I will add these two files toProject1\Project1
- Change to
x86
- Implement these code
#include "graphics.h"
#pragma comment(lib,"graphics.lib")
int main()
{
initwindow(500, 500);
getch();
closegraph();
return 0;
}
- Project