title: can't store an object into array? C++
body: <p>I'm trying to do something simple and store an object into an Array in C++ but it keeps saying that I can't use the = operator with the right hand operand being of my class. Here's the code:</p>
  
  <pre><code>class Player {
      string name;
      double points;
      bool wonLastRound;
  public:
      Player() {}
      Player(string n)
      {
          name = n;
      }
      const Player &amp;operator=(const Player &amp;);
      void addPoints(double p)
      {
          points += p;
      }
  };
  </code></pre>
  
  <p>and here's the code to instantiate</p>
  
  <pre><code>void initPlayers()
  {
      for(int i = 0; i &lt; 4; i++)
          players[i] = new Player("Player " + i);
  }
  </code></pre>
  
  <p>any help would be appreciated, I really need to get this project finished soon!</p>