no message
parent
70571fa290
commit
0f0e1118c8
|
@ -33,6 +33,12 @@ int main(){
|
||||||
list<int>::iterator pos = (find(i.begin(), i.end(), 4));
|
list<int>::iterator pos = (find(i.begin(), i.end(), 4));
|
||||||
i.insert(pos,1);
|
i.insert(pos,1);
|
||||||
|
|
||||||
|
auto begin = i.begin();
|
||||||
|
while(*begin != 4)
|
||||||
|
begin++;
|
||||||
|
|
||||||
|
i.erase(begin);
|
||||||
|
|
||||||
for(auto x : i){
|
for(auto x : i){
|
||||||
std::cout<<x<<"\r\n"<<std::endl;
|
std::cout<<x<<"\r\n"<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue