装运圈编程

2023-11-25 03:00:15 数码极客 bianji01

 

水果自动装箱生产线系统用PLC编程

我会啊 就是这样对不起,帮不上你。

Java 圆类编程

//sorry import java.awt.canvas; import java.awt.color; import java.awt.graphics;public class mypaint extends canvas {int srcx, srcy, destx, desty;public int getdestx() {return destx;}public void setdestx(int destx) {this.destx = destx;}public int getdesty() {return desty;}public void setdesty(int desty) {this.desty = desty;}public int getsrcx() {return srcx;}public void setsrcx(int srcx) {this.srcx = srcx;}public int getsrcy() {return srcy;}public void setsrcy(int srcy) {this.srcy = srcy;}public mypaint() {}public void paint(graphics g) {for (int i=0;i<100;i++){color c = new color((int) (math.random() * 255), (int) (math.random() * 255), (int) (math.random() * 255));g.setcolor(c);int srcx=(int)(math.random() * 800);int srcy=(int)(math.random() * 600);int destx=(int)(math.random() * 800);int desty = (int)(math.random() * 600);g.drawline(srcx, srcy, destx, desty);try {thread.sleep(1000) ;} catch (interruptedexception e) {e.printstacktrace();}}}

初学者求助 C语言编程 输入圆的半径 r ,计算圆的周长和面积 。其中 π =3.1416

#define PI 3.1416;这个后面不要分号

声明:易趣百科所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系315127732@qq.com
广告位招租
横幅广告