// 在列表中插入元素 #include <list> #include <iostream> int main() { std::list<int> listIntegers; listIntegers.push_back(10); listIntegers.push_back(2001); listIntegers.push_back(-1); listIntegers.push_back(9999); std::list<int>::iterator iElementLocator; for (iElementLocator = listIntegers.begin() ; iElementLocator != listIntegers.end(); ++iElementLocator) std::cout << *iElementLocator << std::endl; return 0; }
by: 发表于:2018-02-01 09:53:04 顶(0) | 踩(0) 回复
??
回复评论