[Qt-interest] Unexpected behaviour for loop

Parker userqt at gmail.com
Thu May 28 09:28:17 CEST 2009


Hello, 
I noticed something strange while using the for loop. Here : 

 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. 

Is this correct behaviour, maybe I am missing something ? 



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4098 (20090522) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090528/a0e02a30/attachment.html 


More information about the Qt-interest-old mailing list