list<int> ListInt;
list<int>::iterator it = ListInt.end();
if ( it == ListInt.end() )
{
//unvalid.
}
else
{
//valid
}
http://www.itzhe.cn/news/20080101/40229_3.html
list<int> ListInt;
list<int>::iterator it = ListInt.end();
if ( it == ListInt.end() )
{
//unvalid.
}
else
{
//valid
}
http://www.itzhe.cn/news/20080101/40229_3.html
一、首先說正確的方式 1、讓索引同步調整 for (int i = 0; i < list.size(); i++) { Apple apple = list.get(i);