I suggest two things.
First, I'm not clear on what you want. sounded like you wanted the number of 
elements in a list.
cplusplus.com/ref would give you that answer.
Two, I suggest getting a spell checker.
I'm willing to help if I see you've done the work, but when you've mangled a 
message like that it really makes it rough on my reader. I'm not going to take 
20 minutes to play hangman and try to figure out what you wanted to say when 
you could take two and run a spell checker. Maybe someone who can read your 
messages easier will help.


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 2:21 PM
  Subject: Re: [c-prog] noobs question on list stl........................





  the program is doing nothing but scaning an image vertically and loading 
col_pos,row_start_position and end position.now i got all the column now i need 
to select the middle most coloumn (of 10just taken as threshold value) of 
neighborhood couloumn and mark it.i searched lot really but found nothing till 
now.the if statement is not working.
  i tried with adjascent_differenc() but it s not worked for me.plz 
suggest.................

  ________________________________
  From: Tyler Littlefield <[email protected]>
  To: [email protected]
  Sent: Sunday, April 26, 2009 1:33:28 AM
  Subject: Re: [c-prog] noobs question on list stl........................

  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: ty...@tysdomain. com
  My programs don't have bugs, they're called randomly added features.

  ----- Original Message ----- 
  From: Snit Roy 
  To: c-p...@yahoogroups. com 
  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]

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



  

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

Reply via email to