長(cháng)方體有六個(gè)面,相鄰的面互相垂直。通過(guò)紙板折出長(cháng)方體的方法如下:
在紙板上按下列圖(任選一圖)畫(huà)好,即可折疊成長(cháng)方體。
擴展資料
長(cháng)方體(又稱(chēng)矩體,cuboid)是底面為長(cháng)方形的直四棱柱(或上、下底面為矩形的直平行六面體)。其由六個(gè)面組成的,相對的面面積相等,可能有兩個(gè)面(可能四個(gè)面是長(cháng)方形,也可能是六個(gè)面都是長(cháng)方形)是正方形。
參考資料:百度百科-長(cháng)方體
public class Rectangular{
private double width = 0.0;//長(cháng)方形的寬
private double height = 0.0//長(cháng)方形的高
private String fillColor = "";//填充顏色
private String borderColor = "";//邊框顏色
//屬性的getter、setter方法
public double getWidth(){
return width;
}
public setWidth(double width){
this.width = width;
}
------------------//其他getter setter方法略
//調用該方法,返回面積
public double getArea(){
return width*height;
}
//調用該方法,返回周長(cháng)
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)站尊重并保護知識產(chǎn)權,根據《信息網(wǎng)絡(luò )傳播權保護條例》,如果我們轉載的作品侵犯了您的權利,請在一個(gè)月內通知我們,我們會(huì )及時(shí)刪除。
蜀ICP備2020033479號-4 Copyright ? 2016 學(xué)習?shū)B(niǎo). 頁(yè)面生成時(shí)間:2.774秒