First thing that I noticed is that you only initialized the very first member of your inventory array. You might want to change your while loops into do(){} while(item_type_loop) or do(){}while(shop_loop). Also, if you press 'D', you won't break out, only if you press 'd'.
I get that the program is messy and such, but most of the stuff you guys have said is irrelevant. There is just some stupid loop problem I'm facing, and I don't see what that problem is. I would like to understand that problem first, and then I will go back and clean it up.
I would like to understand that problem first, and then I will go back and clean it up.
The problem is that 'item_type' is an int. The input will never be a char like 'd' or 'b'. You can use temporarily a string for the input and convert it late to int for the 'item_type'
Yeah, stupid mistake, that worked. But, what if I don't want the user to click "enter" for the shop_pick? I've always used shop_pick = getch();, but it screws up now. I hit 1 and it just loops back to the beginning of shop_loop by printing out the stores again. Why?
I realize the problem with the char inside the switch now. How hard, or easy, is it to convert between chars and ints?