²ËÄñÇó½â: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¡£
¸ß²ãµÄ»°£¬ºÃ¶à¿â¶¼ÓС£
Ïà¹ØÎÊ´ð£º
#include <string.h>
#include <stdio.h>
void main()
{
int i;
char buf[]="abcde";
strncpy(buf,"abc",3);
for(i=0;i <5;i++)
printf(&q ......
±àÒëÆÕͨµÄ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/../../. ......
int a=2;
int i;
i=(a++)+(++a)+(a++)+(++a)+(a++);
printf("%d",i);
½á¹ûÊÇ20£¬Çë½â¶Á
ÕâÒѾ²»ÊÇÔ¾ÌùÁË£¬Ëͳ¼Æ¹ý½ñÌ ......
void Main(void)
{
while(1)
{
char aa;
Uart_Printf("\nEnter the 'Y' or 'y' to test:");
& ......
ÎÒ¸öÈ˸оõÓеĵط½Ã»±ØÒª¿´£¬·±ËöµÃºÝ£¬ÓÃ×Ô¼º×ܽáµÄ·½·¨¸üºÃ£¬´ó¼Ò˵˵×Ô¼ºµÄÒâ¼û
ÎҸоõ±ã½Ý¼ÆËãÓë²»¶Ô³Æ±ß½çÍêÈ«¸ù¾Ý×Ô¼ºµÄ¾ÑéÀ´£¬Óò»×Å¿´Å¶£¬´ó¼Ò˵˵
Äã¿´²»¿´ÄÇÊÇÄãµÄÊÂ
Æäʵ¶¼ÊÇ»ù´¡µÄ¶«Î÷À²
......