A comparaison beetween 2 int
-
Hello,
I have a weird behaviour of my program.
It happend when a try to compare 2 integers in WHILE LOOP
@
int ratio = tempSheet->lastRow(); (ratio = 55)
int remain = ratio/100; (remain =0)
int j=0;
while(j<remain) <---- it stops here
@The same problem happens in Debug an Release Mode.
It blocks when comparing 2 integers.In debug Mode, with a breakPoint in while(j<remain) :
I have (Internal error: pc 0x201 in read in psymtab, but not in symtab.)
It happens exactly before executing the loop While.
I checked the value of j and remain, there are both 0.
Any ideas?
Thanks in Advance
[code tags added, please use @ tags around your code, Eddy]
-
Please wrap your code in '@' tags.
You are aware that this loop will not execute anyway (0 is not less than 0)? Otherwise, the code is OK.