The question is the same above.
Since when I compile my C program it gives me a fatal error (graphics.h not found), I was wondering what I can use instead of it.
Consider that I DO NOT WANT links to other sites or whatever, because I'm a newbie and I wouldn't understand.
I just need the command to type, in order to make it work. If I have to download a library then it's fine, provided you guide me all through the process.
Thanks.
Here is what I am trying to compile
A code to create a smiley.
#include <graphics>
int main(void)
{
int midX, midY,
leftEyeX, rightEyeX, eyeY,
noseX, noseY,
headRadius,
eyeNoseRadius,
smileRadius,
stepX, stepY,
initwindow(500, 400, "Happy Face - press key to close", 200, 150);
midX = getmaxx() / 2;
midY = getmaxy() / 2;
headRadius = getmaxy() / 4;
circle(midX, midY, headRadius);
stepX = headRadius / 4;
stepY = stepX;
leftEyeX = midX - stepX;
eyeY = midY - stepY;
eyeNoseRadius = headRadius / 10;
circle(leftEyeX, eyeY, eyeNoseRadius);
circle(rightEyeX, eyeY, eyeNoseRadius);
noseX = midX;
noseY = midY + stepY;
circle(noseX, noseY, eyeNoseRadius);
smileRadius = (int)(0.75*headRadius + 0.5);
arc(midX, midY, 210, 330, smileRadius);
getch();
closegraph();
return(0);
}