【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《网页设计HTML代码》,欢迎阅读!
Document Title
#include #include #include #include #define PI3.1415926 #define START_X 100 #define START_Y 80 #define F_WIDTH 300 #define F_HEIGHT 150 #define W_WIDTH 100 #define W_HEIGHT 5 #define M_WIDTH 2 #define HEIGHT 300 int main()
{ float angle; int x,y; int i; int modify_y[W_WIDTH]; int gdiver=DETECT,gmode; initgraph(&gdriver,&gmode,"c:\\tc"); cleardevice();
for(i=0;i {angle=2*PI*((float)i/W_WIDTH); modify_y[i]=W_HEIGHT*sin(angle); }
setcolor(RED); for(i=0;i {x=START_X+i; y=START_Y+modify_y[i%W_WIDTH]; line(x,
本文来源:https://www.wddqxz.cn/5026147887c24028915fc3e3.html