Click here to Skip to main content
15,896,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using the email sample Pin
includeh1029-Apr-04 1:50
includeh1029-Apr-04 1:50 
GeneralRe: using the email sample Pin
Paul Ranson29-Apr-04 3:04
Paul Ranson29-Apr-04 3:04 
GeneralRe: using the email sample Pin
includeh1029-Apr-04 3:29
includeh1029-Apr-04 3:29 
GeneralRe: using the email sample Pin
Paul Ranson29-Apr-04 11:18
Paul Ranson29-Apr-04 11:18 
GeneralNeed help with MDI Pin
Snyp28-Apr-04 16:14
Snyp28-Apr-04 16:14 
GeneralRe: Need help with MDI Pin
Ryan Binns28-Apr-04 17:58
Ryan Binns28-Apr-04 17:58 
GeneralRe: Need help with MDI Pin
britonleap26-Jun-04 9:29
britonleap26-Jun-04 9:29 
Questionstl's list.. how to delete an item of the list? Pin
kfaday28-Apr-04 14:19
kfaday28-Apr-04 14:19 
stl list & iterators
I've got a list for XML objects. i'm using the std::list

i declare an iteraror, and set it to the beginning of the list


<br />
XML::iterator i = this->begin();<br />



then i want to go to the 'num' positon of the list, so i use this for bucle:

<br />
for(int ii=0; ii<num ;i++, ii++);<br />



that code is ok, i can see what's on the list.
The problem is that i don't know how to delete that position. the following code doesn't seem to work...

<br />
this->erase(i,i);<br />



do you have any ideas? this is my first project with stl.. i've read Eckels Thinking In C++ vol 2 and i can't find anything.. he speaks about a remove method, but i can't use it

thanks!!
AnswerRe: stl's list.. how to delete an item of the list? Pin
f6428-Apr-04 14:43
f6428-Apr-04 14:43 
GeneralChanging source files location Pin
luddet28-Apr-04 14:08
luddet28-Apr-04 14:08 
GeneralRe: Changing source files location Pin
luddet29-Apr-04 11:47
luddet29-Apr-04 11:47 
GeneralPlease help Pin
Stefan Troschuetz28-Apr-04 10:10
Stefan Troschuetz28-Apr-04 10:10 
GeneralRe: Please help Pin
Christian Graus28-Apr-04 10:57
protectorChristian Graus28-Apr-04 10:57 
GeneralUsing ifstream to read huge binary files Pin
Ron Hinthorn28-Apr-04 9:51
Ron Hinthorn28-Apr-04 9:51 
GeneralHi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 8:58
Jamie Kenyon28-Apr-04 8:58 
GeneralRe: Hi,MFC and big data files Pin
David Crow28-Apr-04 9:02
David Crow28-Apr-04 9:02 
GeneralRe: Hi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 12:21
Jamie Kenyon28-Apr-04 12:21 
GeneralRe: Hi,MFC and big data files Pin
l a u r e n28-Apr-04 14:29
l a u r e n28-Apr-04 14:29 
GeneralRe: Hi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 23:01
Jamie Kenyon28-Apr-04 23:01 
GeneralRe: Hi,MFC and big data files Pin
David Crow29-Apr-04 2:40
David Crow29-Apr-04 2:40 
GeneralPut the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:03
Anonymous28-Apr-04 8:03 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:18
Anonymous28-Apr-04 8:18 
GeneralRe: Put the suo and ncb files in another directory Pin
David Crow28-Apr-04 8:55
David Crow28-Apr-04 8:55 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 9:15
Anonymous28-Apr-04 9:15 
QuestionThread and UpdateData?? Pin
bryanbryan28-Apr-04 7:12
bryanbryan28-Apr-04 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.