c++ list_iterator demo
#include <iostream> #include <list> using namespace std; typedef list<int> IntegerList; int main() { IntegerList intList; for (int i = 1; i <= 10; ++i) intList.push_back(i * 2); for (IntegerList::const_iterator ci = intList.begin(); ci != intList.end(); ++ci) cout << *ci << " " << endl; return 0; }
遍历器对各种运算符进行重载
MySQL限时解答,24小时内友哥专业解答
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指