Use a member initialization list to make the GamePoints' constructor assign teamWhales with 100 and teamWolves with 100. #include using namespace std; class GamePoints { public: GamePoints(); void...



Use a member initialization list to make the GamePoints' constructor assign teamWhales with 100 and teamWolves with 100.


#include
using namespace std;


class GamePoints {
   public:
      GamePoints();
      void Start() const;


   private:
      int teamWhales;
      int teamWolves;
};


GamePoints::GamePoints() :/* Your code goes here */{
}


void GamePoints::Start() const {
   cout < "game="" started:="" whales="" "="">< teamwhales="">< "="" -="" "="">< teamwolves="">< "="" wolves"=""><>
}


int main() {
   GamePoints myGame;


   myGame.Start();


   return 0;
}



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here