長方體有六個(gè)面,相鄰的面互相垂直。通過紙板折出長方體的方法如下:
在紙板上按下列圖(任選一圖)畫好,即可折疊成長方體。
擴(kuò)展資料
長方體(又稱矩體,cuboid)是底面為長方形的直四棱柱(或上、下底面為矩形的直平行六面體)。其由六個(gè)面組成的,相對(duì)的面面積相等,可能有兩個(gè)面(可能四個(gè)面是長方形,也可能是六個(gè)面都是長方形)是正方形。
參考資料:百度百科-長方體
public class Rectangular{
private double width = 0.0;//長方形的寬
private double height = 0.0//長方形的高
private String fillColor = "";//填充顏色
private String borderColor = "";//邊框顏色
//屬性的getter、setter方法
public double getWidth(){
return width;
}
public setWidth(double width){
this.width = width;
}
------------------//其他getter setter方法略
//調(diào)用該方法,返回面積
public double getArea(){
return width*height;
}
//調(diào)用該方法,返回周長
public double getCircumference(){
return (width+height)*2;
}
}
#include
class cuboid
{
private:
int height;
int width;
int length;
int volume;
cuboid(int l,int w,int h):height(h),length(l),width(w)
{
volume=height*width*length;
}
public:
int get_vol()
{
return volume;
}
}
using namespace std;
int main()
{
cuboid cub(10,20,30);
cout
}
聲明:本網(wǎng)站尊重并保護(hù)知識(shí)產(chǎn)權(quán),根據(jù)《信息網(wǎng)絡(luò)傳播權(quán)保護(hù)條例》,如果我們轉(zhuǎn)載的作品侵犯了您的權(quán)利,請(qǐng)?jiān)谝粋€(gè)月內(nèi)通知我們,我們會(huì)及時(shí)刪除。
蜀ICP備2020033479號(hào)-4 Copyright ? 2016 學(xué)習(xí)鳥. 頁面生成時(shí)間:2.774秒