摘要: #include "stdlib.h"#include <iostream>#include<string>#include<iostream.h>void b(int nPerson[7])// nPerson[i]表示到第i层的乘客数目{int nFloor, nMinFloor, nTargetFloor;nTargetFloor = -1;for(int i = 1; i <= 6; i++){ nFloor = 0; int j; for(j = 1; j < i; j++) nFloor += nPerson[j] 阅读全文
posted @ 2012-02-27 14:03 Ghost Soar 阅读(452) 评论(0) 推荐(0) 编辑