Code:
class* object;
int num=7-object->getNum();
for(int i=0; i<num; i++)
{ ...... }
for(int i=0; i<7-object->getNum(); i++)
[U]OR[/U]
for(int i=0; i<(7-object->getNum()); i++)
{ ...... }
I cannot get the expected output from the second set. what is the reason for that?
Comment