visual c ++ – How to use class objects correctly

I can not compare (list[0].getOwned () == false)
I can not edit the data with (list[0].setOwned (true);)

#understand 
#understand 
#understand 
#understand 
using namespace std;


Weapon class
{
private:
owned bool; // bool for possessed object
chain element; // string for element 1
string sound; // string for sound

public:
Weapon (Boolean O, Chain I, Chain S)
{
possessed bool = O;
chain element = I;
its string = S;
}
Armed()
{
bool own = false;
string item = "no name";
string sound = "no name";

}
empty set up (bool O)
{
possessed = O;
}

void setItem (I string)
{
item = I;
}

void setSound (S string)
{
its = S;
}

bool getOwned ()
{
return belongs;
}

getItem () string
{
return the object;
}

string getSound ()
{
restore the sound;
}

};

int main ()
{
const int NUM_WEAPONS = 5;
List of weapons[NUM_WEAPONS];
listing[0] = Weapon (false, "sword", "shing");
listing[1] = Weapon (false, "Axis", "Fwump");
listing[2] = Weapon (false, "Dagger", "Tsk");
listing[3] = Weapon (false, "Tiger Mountain", "roar");
listing[4] = Weapon (false, "Shield", "Thud");

if (list[0].getOwned () == false)
{
cout << "You bought a sword" << endl;
listing[0].setOwned (true);
cash = cash - p1;

}
if not (list[0].getOwned () == true)
{
cout << "You already have this weapon" << endl;
}

}

I'm waiting for the list[0].getOwned () == false to compare and pass through the if statement, then set it to true so that you can not "buy it again".
what he does is nothing, I misuse the objects of the class or I miss something completely.