What does it means?
#1

Hey.. I would like to know what the ++ or -- means..

for example:

Код:
Gas[vehicle]++;

Gas[vehicle]--;
Thanks
Reply
#2

Increases or decreases the variable by 1.

Same as

Gas[vehicleid] = Gas[vehicleid]-1;
Gas[vehicleid] = Gas[vehicleid]+1;
Reply
#3

var++; or ++var; is a little bit faster than var += 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)