代码搜索:rectangle
找到约 10,000 项符合「rectangle」的源代码
代码结果 10,000
www.eeworm.com/read/113071/6142056
java rectangle.java
public class Rectangle extends Shape {
double width, height;
public double computeArea() {
return width * height;
}
}
www.eeworm.com/read/113030/6142361
h rectangle.h
// rectangle.h
#ifndef RECTANGLE_H
#define RECTANGLE_H
// class Rectangle definition
class Rectangle {
public:
Rectangle( double = 1.0, double = 1.0 );
double perimeter();
do
www.eeworm.com/read/113030/6142363
cpp rectangle.cpp
// rectangle.cpp
// member function definitions for rectangle.cpp
#include "rectangle.h"
// constructor
Rectangle::Rectangle( double w, double l )
{
setWidth( w );
setLength( l );
www.eeworm.com/read/108102/6186103
java rectangle.java
package com.javapatterns.liskov.version3;
public class Rectangle implements Quadrangle
{
private long width;
private long height;
public void setWidth(long width)
{
www.eeworm.com/read/108102/6186105
java rectangle.java
package com.javapatterns.liskov.version4;
public class Rectangle
{
private long width;
private long height;
public void setWidth(long width)
{
this.width = width;
www.eeworm.com/read/108102/6186108
java rectangle.java
package com.javapatterns.liskov.version2;
public class Rectangle
{
private long width;
private long height;
public void setWidth(long width)
{
this.width = width;
www.eeworm.com/read/108102/6186111
java rectangle.java
package com.javapatterns.liskov.version1;
public class Rectangle
{
private long width;
private long height;
public void setWidth(long width)
{
this.width = width;
www.eeworm.com/read/108102/6186248
java rectangle.java
package com.javapatterns.composite.drawingsafe;
public class Rectangle extends Graphics
{
public void draw()
{
//write your code here
}
}
www.eeworm.com/read/108102/6186263
java rectangle.java
package com.javapatterns.composite.drawingtransparent;
public class Rectangle extends Graphics
{
public void draw()
{
//write your code here
}
public void add(Graphi
www.eeworm.com/read/106826/6191094
c rectangle.c
/*
* Copyright (c) 2004, Swen Moczarski.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo