-
sigh
lets say u have the array
[ 3 4 5 ]
and u want to change the 3 to a 4
or the first integer to a unit higher
[ 4 4 5 ]
a longer array is
[ 1 2 3 4 5 6 7 8 ]
After being ran through the program should be
[ 2 2 3 4 5 6 7 8 ]
understand
It will really look like
345
&
445
but I put the [ ]'s to signify thats the array
Like a liscence plate but I also have something that has 3 digits then another that has 5 digits so you dont just take the array and add 100 or whatever to get the first digit a higher unit...
-
All you are doing is incrementing the value at the subscript of 0.
For an array of integers x, you want to perform this operation...
x[0]++;
-
Hey!
Reply to your older post, not create a new one. Heck, you only posted it 2 hours before this one... :eek: