um. look at the documentation for lists. I have no idea what that code is 
supposed to do, but I believe the list has a count or similar property


Thanks,
Tyler Littlefield
Web: tysdomain.com
email: [email protected]
My programs don't have bugs, they're called randomly added features.

  ----- Original Message ----- 
  From: Snit Roy 
  To: [email protected] 
  Sent: Saturday, April 25, 2009 1:53 PM
  Subject: [c-prog] noobs question on list stl........................





  i just want to count the neighbourhood of it->col_pos value and count 
them.how can i do it???i know its very easy stuff for u.but help me.............

  count=0;
  for(UList::const_iterator it=l.begin(),;it!=l.end();it++)
  {
  if(it->col_pos==(it++)->col_pos)count++;
  else if(count>=10){
  t=((it->col_pos-count)+it->col_pos)/2;
  for(k=it->row_pos_start;k<it->row_pos_end;k++)
  img->imageData[k*step1+t]=0;
  count=0;
  }
  }

  [Non-text portions of this message have been removed]



  

[Non-text portions of this message have been removed]

Reply via email to