string gear [4] = new String []{"Armor", "Dagger", "Helmet", "Shield"};
Hello, this looks like a weird mix of C# or Java, and not C++.
An array of strings can be initialized like this:
string gear[4] = {"Armor", "Dagger", "Helmet", "Shield"};
No need for "new" (unlike languages like C#/Java, where is it necessary most of the time).
Edit: Also,
else if ((choice = 'n')){
|
You probably meant to do ==, not =.
== tests for equality.
= is an assignment.
This is wrong in lines: 37, 43, 49, 59, and 65.
Edit 2:
else if(keep<1 && keep>5){
|
Logically, a number cannot be both less than 1 and greater than 5 at the same time. It doesn't make sense.
You meant to use OR (||), not AND (&&).