I try to store it into an array that holds Items:
(that has already been initialized to hold 100 elements)
itemArray[itemArray.size()] = newItem;
When I try to print it out:
cout << itemArray[itemArray.size()].getData();
The console prints out some funky negative number, and not the actual data. I think I must be storing it incorrectly. How can I store the object correctly into the array?