Describe: |
There are 6 configuration commands, which perform the following results, respectively: Command execution Reset Reset What Reset Board Board fault Board add where to add Board Delet no board at all Reboot Backplane Impossible Backplane Abort Install First He he unkown command Note: He and he are not commands. In order to simplify the input, user-friendly, with the "shortest unique matching principle" match: 1. If you enter only one string, only the command line of one keyword is matched. For example input: R, according to the rule, the match command reset, the execution result is: reset what; input: res, according to the rule, match the command reset, the result of the execution is: reset what; 2. If you enter only one string, but this command has two keywords, the match fails. For example, enter: Reb, you can find the command reboot Backpalne, but the command has two keywords, all matching failed, the result is: unkown command 3, if the input two strings, first match the first keyword, if there is a match but not unique, continue to match the second keyword, if still not unique, matching failed. For example, enter: R B, locate the match command, reset board, and execute the result: board fault. 4, if the input two strings, then first match the first keyword, if there is a match but not unique, continue to match the second keyword, if unique, matching success. For example, enter: B A, unable to determine whether the command board Add or Backplane abort, the match failed. 5, if the input two strings, the first keyword match success, then match the second keyword, if there is no match, failure. For example, enter: Bo A, OK is the command board add, the match succeeds. 6. If the match fails, print "UNKONW command" |