小弟建议您用 Visual C# 2008 软件
属于秒杀问题 根本不需要任何演算法(内建)!
#include<stdio.h>#include<graphics.h>
int main()
{
int gdriver,gmode,i
gdriver=DETECT
initgraph(&gdriver,&gmode," ")
setbkcolor(BLUE)
cleardevice()
setcolor(WHITE)
line(20,20,20,180)
line(20,20,280,20)
setcolor(8)
line(20,180,280,180)
line(280,180,280,20)
setcolor(7)
line(21,21,21,179)
line(21,21,279,21)
line(21,179,279,179)
line(279,179,279,21)
setfillstyle(1,7)
floodfill(30,50,7)
setcolor(8)
line(30,30,270,30)
line(30,30,30,170)
setcolor(15)
line(30,170,270,170)
line(270,170,270,30)
setcolor(7)
line(31,31,31,169)
line(31,31,269,169)
line(31,169,269,169)
line(269,169,269,31)
floodfill(25,25,7)
setcolor(13)
settextstyle(1,0,2)
outtextxy(115,85,"window")
getch()
closegraph()
return 0
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)