cout<<".........................."<<"删除最后一个元素"<<endl;
list lInt
if(lInt.size()>0)
{
LISTINT::iterator delIter=lInt.end();
delIter--;
cout<<*delIter<<endl;
lInt.erase(delIter);
if(lInt.size()>0)
{
delIter=lInt.end();
delIter--;
cout<<*delIter<<endl;
}
长风秋雁
一只名叫tom的猫