반응형
list
#include<string> #include<list> #include<iostream> using namespace std; int main(int argc, char **argv) { list<string> m; m.push_back("a"); m.push_back("b"); m.push_back("c"); list<string>::iterator it; for( it = m.begin(); it != m.end(); it ++ ) { cout << *it << endl; } return 0; }
반응형