标签:sys nbsp back stream for ios pause push print
list: 底层实现为双向链表
#include <iostream> #include <list> using namespace std; // list:双向链表 void ShowPrint(list<int> d) { for (list<int>::iterator it = d.begin(); it != d.end(); ++it) { cout << *it << endl; } } int main() { list<int>val; val.push_back(1); val.push_back(9); val.push_back(5); val.sort(); ShowPrint(val); system("pause"); return 0; }
标签:sys nbsp back stream for ios pause push print
原文地址:https://www.cnblogs.com/oytt/p/13962491.html