Discussion: vector of class
Afficher un message
Vieux 30/06/2008, 18h34   #1
xyz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut vector of class

i have a vector of certain class which has certain parameters
xxx is my class
and here is my vector
std::vector<xxx > yyy;

in my vector i have the data as below:
12 abcde 34567 asdf 1
13 fjggkf 2343 fkjhk 3
12 fgfgfh 33434 fgh 2
34 dgdg 5454 fgfdg 2
.....
now i want to iterate through my vector inorder i have to delete 2nd
line in my vector
here is my iterator which goes through all elements of my vector

std::vector<xxx >::iterator iter;

i could able to do with the integer vector but i have problem with the
vector of certain class
thank you for any
  Réponse avec citation
 
Page generated in 0,04951 seconds with 9 queries