Jaja
PROGRAMA QUE MUESTRA UN CIRCULO
#include
#include
#include
#include
int main(void)
{/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy;
intradius=100;
printf(“ESTE PROGRAMA MUESTRA UN CIRCULO”); /*inicialize graphics and local variables*/
initgraph(&gdriver, &gmode, "");
errorcode = graphresult();/*read result of inicialization*/
if (errorcode != grOk) /*an error occurred*/
{printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);/*terminate with an error code*/
}
midx=getmaxx() /2;
midy=getmaxy() /2;
setcolor(getmaxcolor());circle(midx, midy, radius); /*draw the circle*/
getch();/*clean up*/
closegraph();
return (0);
}
ESTE PROGRAMA MUESTRA UNA ELIPSE
#include
#include
#include#include
int main(void)
{
int gdriver = DETECT, gmode, errorcode;
int midx, midy;
int stangle=0, endangle =360;
intxradius=100, yradius=50;
printf(“ESTE PROGRAMA MUESTRA UNA ELIPSE);
initgraph(&gdriver, &gmode, "");
errorcode = graphresult();
if (errorcode != grOk)...
Regístrate para leer el documento completo.