當前位置:首頁 » 操作系統 » 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);

}
}

熱點內容
scratch少兒編程課程 發布:2025-04-16 17:11:44 瀏覽:631
榮耀x10從哪裡設置密碼 發布:2025-04-16 17:11:43 瀏覽:360
java從入門到精通視頻 發布:2025-04-16 17:11:43 瀏覽:76
php微信介面教程 發布:2025-04-16 17:07:30 瀏覽:301
android實現陰影 發布:2025-04-16 16:50:08 瀏覽:789
粉筆直播課緩存 發布:2025-04-16 16:31:21 瀏覽:339
機頂盒都有什麼配置 發布:2025-04-16 16:24:37 瀏覽:204
編寫手游反編譯都需要學習什麼 發布:2025-04-16 16:19:36 瀏覽:804
proteus編譯文件位置 發布:2025-04-16 16:18:44 瀏覽:358
土壓縮的本質 發布:2025-04-16 16:13:21 瀏覽:584