Player.cpp
void Player::valueProperty(vector<int> &property) {
    for (vector<int>::iterator it = property.begin();
        it != property.end();
        ++it)
    {
        // Use iterator to read and write data from property vector
        *it *= (1 + (this->getGrowth() * 0.01));
    }
}
// Method to appreciate/depreciate real estate property
// after we access the health of the economy
Method to appreciate/depreciate real estate property
after we access the health of the economy
Method to appreciate / depreciate real estate property after we access the health of the economy
void Player::valueProperty(vector<int> &property) {
    for (vector<int>::iterator it = property.begin();
        it != property.end();
        ++it)
    {
        *it *= (1 + (this->getGrowth() * 0.01));
    }
}
void Player :: valueProperty ( vector < int > & property ) { for ( vector < int > :: iterator it = property . begin ( ) ; it != property . end ( ) ; ++ it ) { * it *= ( 1 + ( this -> getGrowth ( ) * 0.01 ) ) ; } }
Method to appreciate/depreciate real estate property
after we access the health of the economy
Method to appreciate / depreciate real estate property after we access the health of the economy
// Use iterator to read and write data from property vector