Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
lIt 尚未正确初始化 - 它是一个迭代器 - 但当前没有指向任何东西 - 您需要执行以下操作:
lIt
lIt = iList.begin(); // initialize it to begin, now we can iterate!
lIt has not been correctly initialized - it is an iterator - but currently does not point to anything - you need to do this:
lIt++; lIt++;
您尚未初始化 lIt 迭代器,但正在递增它。这就是问题所在。
初始化它然后递增:
lIt = iList.begin(); lIt++; lIt++;
You've not intialized lIt iterator, yet you're incrementing it. That is the problem.
Initialize it then increment:
评论总是撒谎!
//0 <-- current pos of iterator lIt
不,不是。 lIt 此时尚未初始化。
The comments always lie!
No it's not. lIt is not initialised at this point.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
lIt
尚未正确初始化 - 它是一个迭代器 - 但当前没有指向任何东西 - 您需要执行以下操作:lIt
has not been correctly initialized - it is an iterator - but currently does not point to anything - you need to do this:您尚未初始化
lIt
迭代器,但正在递增它。这就是问题所在。初始化它然后递增:
You've not intialized
lIt
iterator, yet you're incrementing it. That is the problem.Initialize it then increment:
评论总是撒谎!
不,不是。
lIt
此时尚未初始化。The comments always lie!
No it's not.
lIt
is not initialised at this point.