ok, so i use DEV/C++ on my windoze box, and i compile a program with the lines
and it compiles nicley on DEV, and "i" now adds in incriments of two..
but if i compile with the SAME EXACT code on VC++ of my unix gcc/g++... then i get errors saying that the "i"+2 needs to be "i"++ , which i understand, but i dont want it to be i++, i want it to be i+2, or i+++... can someone tell me how to do the same thing with the for loop in VC++?
| Code: |
| for (i=0;i<100;i+2)
{ statements } |
and it compiles nicley on DEV, and "i" now adds in incriments of two..
but if i compile with the SAME EXACT code on VC++ of my unix gcc/g++... then i get errors saying that the "i"+2 needs to be "i"++ , which i understand, but i dont want it to be i++, i want it to be i+2, or i+++... can someone tell me how to do the same thing with the for loop in VC++?
