赞
踩
#include<list> //define list list<int> order1; //record rack number list<int> order2; //record position in rack //After order1.push_back() and order2.push_back() operations list<int>::iterator iter1,iter2; for (iter1 = order1.begin(); iter1 != order1.end(); iter1++) { cout << "order1 = "<<*iter1 << endl; } for (iter2 = order2.begin(); iter2 != order2.end(); iter2++) { cout << "order2 = " << *iter2 << endl; }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。