This is going to be difficult to explain so I will ask you after this example code...

Code:
vector<string> inventory(10, "empty slot\n");

//pseudocode
if item 10 of inventory is "empty slot" and user buys an item
        then place an item in the vector over the first available "empty slot"

else
      display to user that they have made an error
well, I have got all of that to work except the if item 10 of inventory is "empty slot" . I have made a program that shows that you have 10 empty slots and when you go to the store and buy an item, the first available empty slot gets taken up by the purchased item. The only problem I seem to have is I can't get the program to check whether or not item 10 is an empty slot, and if not, does not try to put an item in the already full inventory.

thnx