View Single Post
  #3 (permalink)  
Old 12-12-2007, 02:46 PM
gulapala gulapala is offline
Member
 
Join Date: Dec 2007
Posts: 11
gulapala is on a distinguished road
Bugger,

When you call it->next, it goes to the next iterator element. So in your code the statement is being called twice due to which, it goes to 3 element, if it satisfies the if condition. So, you should call it only once.
__________________
Thanks & Regards, G.Rajasekhar
Reply With Quote