Player.cpp
void Player::initializeProperty(vector<int> &property) {
    for (vector<int>::iterator it = property.begin();
        it != property.end();
        ++it)
    {
        // Assign each property an initial value from $300,000-500,000
        int price = 300000 + rand() % (200000 + 1);
        *it = price;
    }
}
// Method to initialize real estate property values in the beginning of the game
Method to initialize real estate property values in the beginning of the game
Method to initialize real estate property values in the beginning of the game
void Player::initializeProperty(vector<int> &property) {
    for (vector<int>::iterator it = property.begin();
        it != property.end();
        ++it)
    {
        int price = 300000 + rand() % (200000 + 1);
        *it = price;
    }
}
void Player :: initializeProperty ( vector < int > & property ) { for ( vector < int > :: iterator it = property . begin ( ) ; it != property . end ( ) ; ++ it ) { int price = 300000 + rand ( ) % ( 200000 + 1 ) ; * it = price ; } }
Method to initialize real estate property values in the beginning of the game
Method to initialize real estate property values in the beginning of the game
// Assign each property an initial value from $300,000-500,000