My problem is as follows: I have a prompt asking the user to choose among several choices to read from a file, I would like to limit the choice of the user only, and with only two choices and recover the parameters choice selected.
Example:
1 Color: Green Code: 1
2 Color: Yellow Code: 2
3 Color: red Code: 3
Choice:
The parameters (Green 1) and (yellow, 2) and (red, 3) represents when viewing parameters $ 2 and $ 4.
If the user chooses options 1 and 3 on a table tab [i] should be filled with the parameters (green, 1 red, 3)
Thank you in advance for your help.
Bookmarks