²ËÄñÇó½â:cͼÐÎÎÊÌâ
#include <stdio.h>
#include <graphics.h>
void main()
{
int x0,y0,x1,y1,driver,mode,i;
driver=VGA;
mode=VGAHI;
initgraph(&driver,&mode,"C:\TC201E\BGI");
setbkcolor(WHITE);
x0=263;x1=275;y0=263;y1=275;
for(i=0;i<=18;i++)
{
setcolor(BLACK);
rectangle(x0,y0,x1,y1);
x0=x0-5;y0=y0-5;x1=x1+5;y1=y1+5;
}
settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
outtextxy(150,40,"HOW beatiful it is");
line(130,60,480,60);
setcolor(2);
circle(269,269,137);
}
¸Õ¿ªÊ¼Ñ§Ï°ÔÚtc»·¾³Ï»ͼ£¬ÎªÊ²Ã´´úÂëÔËÐÐͨ¹ýÁË£¬¿ÉÊÇʲô¶¼Ã»ÏÔʾÄØ£¿ÔËÐкóÆÁÄ»ÊǺڵģ¬°´ÈÎÒâ¼üÍ˳ö
initgraph(&driver,&mode,"C:\\TC201E\\BGI");
ÇÒC:\TC201E\BGIĿ¼ÏÂÓÐVGA.BGIÎļþ
ÇÒ×îºóÒª¼Ó
getchar();
closegraph();
àÅ£¬Â·¾¶±ØÐëʹÓÃ'\\'¶ø²»ÊÇ'\'
driver=DETECT×îºÃ»»Õâ¸ö°É
»¹ºÃÊǸÕѧtc»Í¼£¬»ØÍ·ÊÇ°¶¡£
Ïëѧµ×²ã»Í¼µÄ»°£¬opengl¡£
¸ß²ãµÄ»°£¬ºÃ¶à¿â¶¼ÓС£
Ïà¹ØÎÊ´ð£º
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
ÒÔÇ°ÔÚVCÀïÃ潨һ¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c Fil ......
±àÒëÆÕͨµÄcûÎÊÌâ°¡£¬µ«±àÒëjavahÉú³ÉµÄ¾Í±¨´í£º
gcc -O0 -g3 -Wall -c -fmessage-length=0 -oHelloWorld.o ..\HelloWorld.c
gcc -otest.exe HelloWorld.o
d:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../. ......
RT
pow(x,y)
exp( x, 1/y)
float x=27.0f;
float y=1/3.0f; //¿ª3´Î·½
float z=pow(x,y);
printf("%f",z);
¡£¡£¡£ ÊÇpow(x, 1/y)
Â¥ÉÏ ÎÒÔËÐÐÔõôÊÇ0 °¡
ÓÐûÓÐÕâÖÖд·¨ ......
ÈçÌ⣬ÕâÊéÔõÑù£¬ÖªµÀµÄ˵Ï£¬Ð»Ð»¡£
ûÌý˵¹ý
ͬÎÊ£¬Í¬ÎÊ
ÎÒҲûÌý˵¹ý
ÎÒÖ»ÔÚÍøÉÏÏÂÔعýÕâ±¾ÊéµÄ¿ÎºóÌâ¡£
ʵ»°Ëµ£¬¿ÎºóÌ⻹ÂùÓÐˮƽµÄ¡£
¾Ý´Ë¹À¼Æ£¬Õâ±¾ ......