Posts tagged with C++


#include #include using namespace std; int main() { list myList(5,0); list::iterator it = myList.begin(); advance(it,2); *it = 10; /************输出***********/ cout << "-------------原链表-----------" <<endl; list::iterator outputIt; for(outputIt = myList.…