A possible solution is inheritance of objects. You may create a base class like Weapon with some functions and member variables like name, power and distance. This gives you the possibility to store it in some array or container. Than derivee some special classes for the individual weapon.
But best is, when you also visit some
Learn C++ tutorial to understand the language and its usage.
Tip: use class design to better separate every task and make the code more readable.
Good luck.