當前位置:首頁 » 操作系統 » yy多開源碼

yy多開源碼

發布時間: 2025-03-19 19:50:56

Ⅰ CF 後台自動准備 源碼 +多開 自動登陸的 實現原理及源碼

import javax.swing.JOptionPane;
class Rectangle extends Shape
{
public double zhouchang(double c,double k)
{
return (c + k) * 2;
}

public double mianji(double c,double k)
{
return c * k;
}
}

class Square extends Shape
{

public double zhouchang(double c,double k)
{
return (c + k) * 2;
}

public double mianji(double c,double k)
{
return c * k;
}
}

class Circle extends Shape
{

public double zhouchang(double y,double P)
{
return P * y * 2;
}

public double mianji(double y,double P)
{
return P * y * P * y;
}
}
abstract class Shape
{

public abstract double zhouchang(double x,double y);

public abstract double mianji(double x,double y);

}

public class Wb5
{
public static void main(String[] dafdasdf)
{
final double P = 3.14;
System.out.println("輸入長");
double c = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Number"));
System.out.println("輸入寬");
double k = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Number"));
System.out.println("輸入輸入半徑");
double y = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Number"));

Rectangle a = new Rectangle();
double cf = a.zhouchang(c,k);

double cf1 = a.mianji(c,k);

System.out.println("長方形的周長為:"+cf);
System.out.println("長方形的面積為:"+cf1);

Square b = new Square();
double zf = b.zhouchang(c,k);

double zf1 = b.mianji(c,k);

System.out.println("正方形的周長為:"+zf);
System.out.println("正方形的面積為:"+zf1);

Circle d = new Circle();
double yy = d.zhouchang(y,P);

double yy1 = d.mianji(y,P);

System.out.println("圓形的周長為:"+yy);
System.out.println("圓形的面積為:"+yy1);

}
}

熱點內容
電腦搭建游戲方舟伺服器 發布:2025-03-20 08:22:14 瀏覽:897
android開發學什麼 發布:2025-03-20 08:21:22 瀏覽:278
ID電子鎖的遙控密碼一般是多少 發布:2025-03-20 08:20:04 瀏覽:59
androidexcel 發布:2025-03-20 08:19:49 瀏覽:634
國外ftp伺服器 發布:2025-03-20 08:19:09 瀏覽:520
linuxftp伺服器搭建設置用戶許可權 發布:2025-03-20 08:19:08 瀏覽:766
域名訪問升級迅雷 發布:2025-03-20 08:01:47 瀏覽:336
安卓開發python 發布:2025-03-20 07:57:30 瀏覽:688
手機代理伺服器怎麼設置限制 發布:2025-03-20 07:51:03 瀏覽:426
keil的c51編譯器 發布:2025-03-20 07:40:46 瀏覽:338