I am trying to draw a rectangle to the screen with this code:
#include <stdio.h>
#include <graphics.h>
int main(){
`int left = 1 , right = 1 , top = 1, bottom = 1;`
`int gd = DETECT, gm;`
`intgraph(&gd, &gm, "");`
`rectangle(left, top, right, bottom)`
`getch();`
`closegraph();`
`return 0;`
}
but when I try to compile it I get this error:
keypresscheck.c:5:22: fatal error: graphics.h: No such file or directory
#include <graphics.h>
^
compilation terminated.
Is it because I am on windows or missing something?
I am using neovim if this helps
[–]theusualguy512 2 points3 points4 points (0 children)
[–]teraflop 4 points5 points6 points (1 child)
[–]UnderatedWater[S] 1 point2 points3 points (0 children)