Ok well first off, i am coding a game in c++, its text based and im coding it to get experince in c++ as i am relevently new To Coding in c++.

Ok , so my problem is i want to make an inventory where when i click buy weapons it stores the weapon/ item anme inside an array and i can then call this array for when im attacking monsters or make an if statement to say if the array[1] = dagger, so on so forth then my strength increases..


any idea??