代码搜索:GetArea
找到约 243 项符合「GetArea」的源代码
代码结果 243
www.eeworm.com/read/272746/10946048
cpp 8-9.cpp
#include
#include "8-5.h"
using namespace std;
void main()
{
Rectangle rect(2,4);
Circle cc(5);
cout
www.eeworm.com/read/462923/7191602
java rectangle.java
package lab3.problem2;
public class Rectangle extends Shape {
double a,b;
public Rectangle(double width, double height) {
a= width;
b= height;
}
public double getArea() {
doub
www.eeworm.com/read/462923/7191603
java triangle.java
package lab3.problem2;
public class Triangle extends Shape {
double x,y,z;
public Triangle(double s1, double s2, double s3) {
x=s1;
y=s2;
z=s3;
}
public double getArea() {
www.eeworm.com/read/439580/7705531
java arrays2.java
import java.util.*;
class Sagak implements Comparable{
private int width;
private int height;
Sagak(int width, int height){
this.width=width;
this.height=height;
}
int getArea(
www.eeworm.com/read/199075/7890254
cpp adt.cpp
class Shape
{
public:
Shape(){}
virtual ~Shape(){}
virtual long GetArea() = 0;
virtual long GetPerim()= 0;
virtual void Draw() = 0;
private:
};
www.eeworm.com/read/398741/7926222
java statictest.java
//StaticTest.java
class Circle {
static double pi = 3.14;
static int objectNo = 0;
int radius;
Circle(int r) {
radius = r;
objectNo++;
}
Circle() {
radius = 2;
objectN
www.eeworm.com/read/145545/12715448
java debugsquare.java
package questions.c5;
class DebugShape {
public abstract double getPerimeter() {};
public abstract double getArea() {};
}
public class DebugSquare extends DebugShape {
private double le
www.eeworm.com/read/327965/13053333
java rectangle.java
class Rectangle
{
int iHeight,iWide;
Rectangle( int height, int wide)
{
iHeight = height;
iWide = wide;
}
int GetLen()
{
return 2*(iHeight+iWide);
}
int
www.eeworm.com/read/318327/13481408
java rectangle.java
// 例2.1.1 Rectangle.java
class Rectangle // 长方形类
{
double length; // 长
double width; // 宽
public double getPerimeter() // 求周长
{
return (length+width) * 2;
www.eeworm.com/read/312169/13616877
cpp adt.cpp
class Shape
{
public:
Shape(){}
virtual ~Shape(){}
virtual long GetArea() = 0;
virtual long GetPerim()= 0;
virtual void Draw() = 0;
private:
};