-->
当前位置:首页 > 题库

PROGRAMMING:Organization week information

Luz5年前 (2021-05-10)题库411
Enter a positive integer repeat (0 < repeat < 10) and perform the following operations:
Define a pointer array to organize the following week information, input a string and search in the table. If it exists, output the serial number of the string in the table. Otherwise, output - 1.
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Input and output example: description in brackets, no input and output required
###Input sample (repeat = 3):
```in
three
Tuesday
Wednesday
year
```
###Output example:
```out
three
four
-1
```






answer:If there is no answer, please comment