c++ memory matching game 記憶配對數字遊戲
(No: 0, 1, 2, 3, 4) (26 points) Write a program of the memory matching game.
(8 points) Read n and generate an n by n board randomly filled with the pairs of numbers from 1 to the n2/2. If n is odd, 0 is filled.
(6 points) The player can select two numbers each time.
(8 points) If two numbers match, they are left exposed. Otherwise, they return hiding.
(4 points) The game continues until all numbers are exposed and shows the times of wrong guesses.
A possible run may look like:
Enter the number: 4
* * * *
* * * *
* * * *
* * * *
Select numbers: 2 2 3 3
* * * *
* 6 * *
* * 1 *
* * * *
-------------------------
* * * *
* * * *









