模型
1,
定义int [100][100][20],表示3维空间中的集装箱编号1~999
0,代表为空
-1,代表为可放
-2,代表为不可放
2,集装箱结构体,1商品编号int 2重量 3限重 4限层
typedef struct node2{
int chang ; //*长
int kuan; //*宽
int gao;//*高
}num;
struct node1{
int bianhao ; //*物品编号
double weight; //*物品重量
double limwei; //*集装箱上限重
double limfol; //*集装箱限层
num number; //*集装箱属性
}dp1[20][20][20];//*集装箱位置
int dp2[20][20][20]={0};//*dp1集装箱的状态(0,-1,-2) </strong>
EXAMPLE:测试集装箱内部属性
int main()
{
for(int x = 0 ; x <2 ; x++)
{
for(int y = 0 ; y < 2 ; y++)
{
for(int z = 0 ; z <2 ; z++)
{
scanf("%d %d %d",&dp1[x][y][z].number.chang,&dp1[x]