[Qt-interest] Unexpected behaviour for loop

Martin Gebert martin.gebert at alpha-bit.de
Thu May 28 09:36:29 CEST 2009


>  for(int i = 1;i < integerList.size();i++) 
> 
> {
> 
> }
> 
>  
> 
> "i" should be initialized to 1 and we should enter the loop. 
> But it's not happenig. I debuged, the i variable is just not 
> initialized. 


This is not Qt related, you may better be asking on a C++ mailing list.
However, what's the size of integerList? And why don't you start at 0
instead of 1?

Martin




More information about the Qt-interest-old mailing list