Question: a. Add a select_knight function. . Implement a function starts with this declaration: int select_knight(const kingdom_data &kingdom) - This should be also to: . show

a. Add a select_knight function. . Implement a function starts with this declaration: int select_knight(const kingdom_data &kingdom) - This should be also to: . show the user a list of the names of the knights, and their index (from 1 to n) - ask the user to enter the index of the knight they want to select (from 1 to n) " ensure the user has entered a valid index (i.e. an integer from 1 to n) - return the index of a knight in the array (i.e. return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
