C++

Was hoping if anyone can help me with making this program its for my midterm what I have to do is make a card game using voids and vectors just the basic things when starting C++

My game that I'm try to make is called 24 The basics of the game is that the user and the computer get 4 random cards from a std deck of 52 jacks are taken outeach card has a value from 1 to 11 The point of the game is to get 24 with the numbers that were given using +, -, / , * the player has to input what they want to do but yehh that's what have to do I might be explaining it wrong here's the Link for the game and its better explain

No what i mean is that ones the player knows what there going to do (+,-,*,/) they'll press enter now with the computer i want to randomizes what the computer does so it won't get the right answer all the time to make it fair

here's the Algorithm

The computer way to play this game is to:get all possible permutations of 4 numbers,calculate all possible arithmetic results for each permutation, and thenjudge whether 24 is within the result set.Step 2 is the core of the algorithm.Let's assume a sorted permutation from step 1 is expressed as A1, A2, A3, ..., An.Define F as F (An) = A1 (op) A2 (op)A3, ... An-1 (op) An, where (op) is addition (+), subtraction (-), multiplication (*) or division (/), reverse subtraction or reverse division.It's natural that F (An) = F (An-1) (op) An. This is where a recursive function shows its power.

now here's what the player needs to do

The rule is simple: at random any 4 cards, and try to get a result of 24 from the numbers on the cards, only with the 4 basic arithmetic operations, namely, addition (+), subtraction (-), multiplication (*) and division (/). Jack (J), Queen (Q), King (K) and Ace (A) represent 11, 12, 13 and 1 respectively, or they all represent 1 in an alternative flavor.

For example, given numbers 3, 3, 4 and 8, we can get such an expression: 3*8*(4-3) = 24.