...都已經寫出來了,祇差I/O而已 2006-10-18 17:23:21 補充: 因為是 rectangle 所以只要輸入兩邊, 輸四邊萬一四邊都不同那就不是 rectangle int GetArea...
分類:電腦與網際網路 > 程式設計 2006年10月20日
...一個擁有length(長), width(寬), height(高)的 Rectangle _Solid類別, 這三個屬性預設值皆...private: float _length, _width, _height; }; Rectangle _Solid:: Rectangle _...
分類:電腦與網際網路 > 程式設計 2006年04月24日
class Rectangle { public: Rectangle () { length= width= 1.0; } // length & width 預設為...
分類:電腦與網際網路 > 程式設計 2006年05月23日
...of destination upper-left corner int nDestWidth, // width of destination rectangle int nDestHeight, // height of destination rectangle int XSrc...
分類:電腦與網際網路 > 程式設計 2009年01月22日
#include <iostream> class Rectangle { public: Rectangle () : length(1),width(1) { } void set(int a_nL...
分類:電腦與網際網路 > 程式設計 2008年10月06日
... c ) { double s; s=(a+b+ c )/2.0; return((T)(sqrt(s*(s-a)*(s-b)*(s- c )))); }#define circle CIRCLE::area #define rectangle RECTANGLE ::area #define triangle area #define AREA TRIANGLEint...
分類:電腦與網際網路 > 程式設計 2012年10月03日
...iostream>#include<stdlib.h>using namespace std;void circle();void rectangle ();void triangle();int main(){ int select; cout<<"...
分類:電腦與網際網路 > 程式設計 2006年07月21日
...namespace std; int main() { int bottom, hight, longer, wide, hb, lb, input, triangle, rectangle , trapezoid; cout << "請輸入1.三角形 或 2...
分類:電腦與網際網路 > 程式設計 2008年10月01日
... Rectangle (0,0,5,-5); Rectangle b = new Rectangle (-1,1,3,-4); Rectangle c = new Rectangle (a); // copy constructor (deep copy) c .display(" c : "...
分類:電腦與網際網路 > 程式設計 2007年10月25日
class Rectangle { public: Rectangle () { length = width = 1.0; } bool...namespace std;int main(){double w, l;cin >> w;cin >> l; Rectangle r;r.setLength(5.0);r.setWidth(4.0...
分類:電腦與網際網路 > 程式設計 2006年05月23日