各位电脑大神,求解!!! 10
因为iertutil.dll,urlmon.dll丢失,导致大多数软件不能使用,如QQ,音乐软件,360相关软件,求解决方案,要详细O(∩_∩)O哈!...
因为iertutil.dll , urlmon.dll丢失,导致大多数软件不能使用,如QQ,音乐软件,360相关软件,求解决方案,要详细O(∩_∩)O哈!
展开
3个回答
展开全部
package Circle;
/**
* 定义点类
* @author Sontion
*
*/
public class Point {
//X坐标和y坐标
private double x;
private double y;
//重写构造方法
public Point(double x, double y) {
this.x = x;
this.y = y;
}
//定义get/set方法
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
}
package Circle;
/**
* 编写圆类
* @author Sontion
*
*/
public class Circle {
private double r;
private Point point;
public Circle(double r, Point point) {
super();
this.r = r;
this.point = point;
}
/**周长*/
public double getLength(Circle c){
double length=0.0;
double pi=3.14;
length=2*pi*c.getR();
return length;
}
/**面积*/
public double getArea (Circle c){
double length=0.0;
double pi=3.14;
length=pi*c.getR()*c.getR();
return length;
}
public double getR() {
return r;
}
public void setR(double r) {
this.r = r;
}
public Point getPoint() {
return point;
}
public void setPoint(Point point) {
this.point = point;
}
}
package Circle;
public class test {
public static void main(String[] args) {
Point po = new Point(1.0,1.0);
Circle c = new Circle(4.0,po);
double a = c.getLength(c);
double b = c.getArea(c);
System.out.println(a+","+b);
}
}
写了个,可能我没明白你的意思,算周长用x,y干嘛?
这样可以么?
/**
* 定义点类
* @author Sontion
*
*/
public class Point {
//X坐标和y坐标
private double x;
private double y;
//重写构造方法
public Point(double x, double y) {
this.x = x;
this.y = y;
}
//定义get/set方法
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
}
package Circle;
/**
* 编写圆类
* @author Sontion
*
*/
public class Circle {
private double r;
private Point point;
public Circle(double r, Point point) {
super();
this.r = r;
this.point = point;
}
/**周长*/
public double getLength(Circle c){
double length=0.0;
double pi=3.14;
length=2*pi*c.getR();
return length;
}
/**面积*/
public double getArea (Circle c){
double length=0.0;
double pi=3.14;
length=pi*c.getR()*c.getR();
return length;
}
public double getR() {
return r;
}
public void setR(double r) {
this.r = r;
}
public Point getPoint() {
return point;
}
public void setPoint(Point point) {
this.point = point;
}
}
package Circle;
public class test {
public static void main(String[] args) {
Point po = new Point(1.0,1.0);
Circle c = new Circle(4.0,po);
double a = c.getLength(c);
double b = c.getArea(c);
System.out.println(a+","+b);
}
}
写了个,可能我没明白你的意思,算周长用x,y干嘛?
这样可以么?
合力亿捷
2023-07-25 广告
2023-07-25 广告
在线客服系统是一种以网站为媒介,向互联网访客与网站内部员工提供即时沟通的页面通信技术。它通过网页为载体,运用最新网络技术,为企业提供实时在线客服和访客监控功能,并支持文件对传、邀请对话等功能,有效提高企业客户服务质量和销售业绩。
在线客服系...
点击进入详情页
本回答由合力亿捷提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询