首頁
程式語言
工具下載
學習範例
技術專區
相關書籍
原始碼程式範例
好站相報
技術論壇
易尋網
ASP空間租賃
汽車追蹤的第一個家
弘光科技大學
南開技術學院
巨匠電腦
買賣購物網
Life Light
遠距醫療網
清境民宿珂之幄
原始程式碼
#include <graphics.h> #include <stdio.h> #include <conio.h> void fillrectangle(int l, int t, int r, int b, int f, int c); void main(void) { int driver, mode; int i,j; driver = VGA; mode = VGAHI; initgraph(&driver, &mode, ""); for (i=0;i<8;i++) { for (j=0;j<8;j++) { if (((i+j) % 2) == 0) { fillrectangle(10+i*30,10+j*30,40+i*30,40+j*30,BLACK, BLUE); } else { fillrectangle(10+i*30,10+j*30,40+i*30,40+j*30, WHITE, BLUE); } } } getch(); closegraph(); } void fillrectangle(int l, int t, int r, int b, int f, int c) { setcolor(f); rectangle(l,t,r,b); floodfill(l+1, t+1, f); setcolor(c); rectangle(l,t,r,b); }
1. 請點選此處複製以上資料
2. 請按
ctrl-c
複製到剪貼簿
3. 切換到ASP的原始內碼區
4. 請按
ctrl-v
貼上所有資料