#include
#include
using namespace std;
int main()
{
list lst;
int i;
for(i=0; i<10; i++) lst.push_back(i);
cout << "Size = " << lst.size() << endl;
list::iterator p = lst.begin();
while(p != lst.end()) {
cout << *p << endl;
p++;
}
p = lst.begin();
while(p != lst.end()) {
*p = *p + 100;
p++;
}
p = lst.begin();
while(p != lst.end()) {
cout << *p << " ";
p++;
}
return 0;
}