代码搜索:rectangle
找到约 10,000 项符合「rectangle」的源代码
代码结果 10,000
www.eeworm.com/read/290300/3980470
java rectangle.java
/**
* 文件注释,说明本文件的主要功能
*/
package chapter2;
/**
* 版本注释,说明文件的版本信息
*/
import java.util.* ;
public class Rectangle //根据约定Java类明通常以大写字母开头
{
int length = 0; //声明矩形的长度属性
int wight = 0
www.eeworm.com/read/287209/4025576
java rectangle.java
public class Rectangle {
public int width = 0;
public int height = 0;
public Point origin;
// four constructors
public Rectangle() {
origin = new Point(0, 0);
}
public Re
www.eeworm.com/read/287209/4025587
java rectangle.java
/*
* This example requires no changes from the 1.0 version. You can
* find the 1.0 version in ../example/Rectangle.java.
*/
www.eeworm.com/read/287209/4025608
java rectangle.java
public class Rectangle {
public int width = 0;
public int height = 0;
public Point origin;
// four constructors
public Rectangle() {
origin = new Point(0, 0);
}
public Re
www.eeworm.com/read/287209/4025631
java rectangle.java
public class Rectangle {
public int width = 0;
public int height = 0;
public Point origin;
// four constructors
public Rectangle() {
origin = new Point(0, 0);
}
public Re
www.eeworm.com/read/287209/4025655
java rectangle.java
public class Rectangle {
public int width = 0;
public int height = 0;
public Point origin;
// four constructors
public Rectangle() {
origin = new Point(0, 0);
}
public Re
www.eeworm.com/read/286193/4041454
cpp rectangle.cpp
// Exercise 17.12: Rectangle.cpp
// Rectangle class member-function definitions.
#include // required to perform C++-style stream I/O
#include // required for the sqrt functio
www.eeworm.com/read/286193/4041462
h rectangle.h
// Exercise 17.12: Rectangle.h
// Rectangle class derived from TwoDimensionalShape.
#ifndef RECTANGLE_H
#define RECTANGLE_H
#include "TwoDimensionalShape.h" // TwoDimensionalShape class
clas
www.eeworm.com/read/279449/4136781
h rectangle.h
/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / /
www.eeworm.com/read/277819/4150659
h rectangle.h
//Begin of Rectangle.h
class Point //基类声明
{
public:
void InitP(float xx=0, float yy=0) {X=xx;Y=yy;}
void Move(float xOff, float yOff) {X+=xOff;Y+=yOff;}
float GetX() {return X;}
float GetY(