Hi guys,
I know this forum is dedicated to qt but I am in trouble with basic cpp concept.
Actually the following code works fine on window with vs2003 but won't get compiled on linux and mac os.
Qt Code:
void functionname() { // few statements for(int nIndex = 0; nIndex < 10; nIndex++) { // few statements } for(nIndex = 0; nIndex < 10; nIndex++) { // few statements } // few statements }To copy to clipboard, switch view to plain text mode
I think it is incorrect because nIndex variables should not exist after for loop. Please let me know your opinions.
Any body can help me or figure out the reason behind the problem.
Thanks in Advance.
Sandip
Bookmarks