Problem with increment operator in C/C++ - Dev Shed