关键代码如下:
int contn = 0; //记录搬运次数
for( i =1 ; i<=content(pallet) ; i++ )
{ let op load the item from pallet , and put it on queue1 //op = operator
contn = 1 + contn ;
}
if ( contn == content (pallet ) )
{ let op load the pallet from car , and put it on queue2 //car
}