class CRectangle { //定義矩形類別. //資料成員. int width; //寬. int height; //長. . //函數成員. int area(){ //計算面積. return width*height;. }.
確定! 回上一頁