[Solved] C++: No matching function to call to const char
You declared the constructor of player as Player(string name, int points);. If you define a function with two parameters you have to use both. Create your object with Player player1 = Player(“Matti”, 0); If you still want to call it with just one parameter you have to set a default value like this. class Player … Read more