Description: Design a menu with multiple menu items demo program, and then design the corresponding menu items for these functions.
Requirements:
(1) program displays the following menu options:
1. Solving a quadratic equation
2. Rock, paper, scissors game
3. Exit the program
Select 1-3:
(2) the user selects 1, then solving a quadratic equation Ax ² + Bx+ C = 0 root. User input A, B, C values, the output equation roots x1 and x2.
(3) the user selects 2, the simulation of rock, paper, scissors game. Users can choose the stone, paper, scissors in one, the computer randomly generate one of three kinds of objects, according to "win the stone scissors, scissors wins cloth, stone, cloth wins" rule to determine the outcome of the other, the default is a Board will be played, if possible, to achieve best of three games of the rules.
To Search:
File list (Check if you may need any files):
exercise.cpp