27.05.2015, 20:05
Quote:
++ TotalVehiclesCreated;
Should be: TotalVehiclesCreated++; |
Код:
new a = 5; new b = 5; printf("%d", a++); // prints 5, because a gets incremented after the print printf("%d", ++b); // prints 6, because b gets incremented before the print