Take it step by step.
Declare the array: bool[4][13];
At the start of your program, clear the array (set it all to zero), with a while loop, for example.
Make something to accept user input on numbers/suits and store them. e.g.
1 2 3 4
|
cout << "Enter suit: ";
cin >> suit;
cout << "Enter number: "
cin >> num;
|
Make sure you do not accept bad inputs, like '4' or 'a' or '}'. ;)
You can take the input in lots of ways. In chars, in numbers or in strings.
Then place the cards in the array. Something like if suit == diamonds, int x = 4;
if num == 9, y == 9 and you have x/y positions for the grid and then finally:
array[y][x] = 1;
Then you can pass the array, starting by looking at the pattern for a royal flush, then 4 of a kind etc until high card, making the pass stop at the first thing found.