items[SHOVEL]=1;
youre really writing
items[2]=1;
I think youre not completally understanding arrays... Ill try to explain, but you might want to read some more tutorials on the subject. Also, sorry if any of this seems stupid-obvious, but its hard to get a feel for how much you get online.
Arrays are just a whole bunch of single numbers
int array[5]; is equivilant to
int array1;
int array2;
etc.
But, you can use a variable (like int i) to access a certain one of the variables in the array.
So you can do array[i]=1;
instead of having to say
switch(i) case 1: array1=1; breakl case 2: array2=1;So, you can just use for loops to access each member(individual element) of an array based on the variable you use in the for loop (im assuming you know what for loops are)

Find content
Male