title: Error: Conversion from 'double' to non-scalar type 'Player' requested in function 'int main()';
body: <p>I'm not sure why I am getting an error here as I have very similar code in another program that runs just fine. This is my first time posting to this forum and so I'm not sure what to include but here is the code where I receive the error.</p>
  
  <pre><code>int AddPlayers(vector&lt;Player&gt;&amp; players)
  {
      string name;
      double wins;
      double losses;
      double draws;
      int x = 0;
      Player findPlayer("null", 0, 0, 0);
      cout &lt;&lt; "Name of player you would like to add?" &lt;&lt; endl;
      cin &gt;&gt; name;
      for (x = 0; x &lt; players.size(); x++ )
      {
          findPlayer = players[x];
          findPlayer.getName();
          x++;
          if (name == findPlayer.getName())
          {
              cout &lt;&lt; "That player is already in the tournament." &lt;&lt; endl;
              return 1;
          }
          Player newPlayer = (name, wins, losses, draws);
          players.push_back(newPlayer);
      } 
  }
  </code></pre>