14.11.2014, 21:05
not sure if your trying to do like can't exceed the numbers
so you need to do it like
Presume that whats you mean?
so you need to do it like
Код:
if(value < 0 || value > 10000) { // Not allowed } else batteries[id][count] = value;