专业的网站建设流程,北京学设计去哪个网站,网站首页备案号链接,在线友情链接该楼层疑似违规已被系统折叠 隐藏此楼查看此楼我这种方法为什么图形只能显示一下就不见了#xff0c;这是为什么#xff1f;能不能用在双曲线上#xff1f;#xff1f;能的话改哪里#xff1f;#xff1f;#include#includefloat a,b,c,xmin,xmax,max; void menu(){printf…该楼层疑似违规已被系统折叠 隐藏此楼查看此楼我这种方法为什么图形只能显示一下就不见了这是为什么能不能用在双曲线上能的话改哪里#include#includefloat a,b,c,xmin,xmax,max; void menu(){printf(\n*****welcome*****\n);printf(\n 1.input coefficient);printf(\n 2.input extent);printf(\n 3.draw function curve);printf(\n 4.quit);printf(\n*****************\n);}void fun1(){ printf(input a,b,c\n);scanf(%f,%f,%f,a,b,c);}void fun2(){ printf(input xmin,xmax\n); scanf(%f,%f,xmin,xmax);}void funmax(){ float m,n; if(xmin0) m-xmin; else mxmin; if(xmax0) n-xmax; else nxmax; if(mn) maxm; else maxn;}float funx(float max_x){ return(max_x/2/max);}float funy(float max_y){float d; dmax_y/2/(a*max*maxb*maxc); if(d0.6) d0.6; if(d0.0026) d0.0026; return(d);}void fun3(){ int max_x,max_y; int graphdriverDETECT,graphmode;float x1,y1,x2,y2,x,coe_x,coe_y; initgraph(graphdriver,graphmode,);cleardevice(); max_xgetmaxx(); max_ygetmaxy();funmax();coe_xfunx(max_x); coe_yfuny(max_y); line(0,240,640,240); line(320,0,320,480); line(640,240,635,235); line(640,240,635,245); line(320,0,315,5); line(320,0,325,5); outtextxy(320,240,(0,0));outtextxy(620,240,x); outtextxy(320,10,y);x1max_x/2xmin*coe_x,y1max_y/2-(a*xmin*coe_x*xmin*coe_xb*xmin*coe_xc)*coe_y;moveto((int)x1,(int)y1); for(xxmin*coe_x;xxmax*coe_x;x){ x2max_x/2x,y2max_y/2-(a*x*xb*xc)*coe_y;lineto((int)x2,(int)y2); }void getch();closegraph(); }void main(){ int n; menu(); while(1){ scanf(%d,n); switch(n){ case 1:fun1();break;case 2:fun2();break;case 3:fun3();break;case 4:exit(0);default:printf(\n error \n); } }}