The quick
brown fox
jumped over
the fence
and eluded the
pursuing
hounds.
If n is 3, then your program would print:
and eluded the
pursuing
hounds.
If n is 10, then your program would print all 7 lines of input.
Constraints
smiley ebber wolf huck jessie lady
then smiley is the team leader and ebber, wolf, huck, jessie, and lady are team members. We have provided you with a main function that reads lines of input. You are to write the following two functions:
| 0 | brad | jake | nancy | alana | |||
| 1 | nels | lana | paul | xavier | ron | ||
| 2 | yifan | yan | zhang | jim | mark | ken | kevin |
Then if it is passed the string beginning with "smiley", the teams vector should have the following form when the function exits:
| 0 | brad | jake | nancy | alana | |||
| 1 | nels | lana | paul | xavier | ron | ||
| 2 | yifan | yan | zhang | jim | mark | ken | kevin |
| 3 | smiley | ebber | wolf | huck | jessie | lady |
smiley ebber wolf
huck jessie lady
brad jake nancy
alana
If the team leader is not in teams, then your function should print the message:
no team found whose leader is xxxxx
where xxxxx is the name of the team leader. There are no formatting requirements for this latter message, but once again, make sure that there is an extra newline character printed so that a blank line appears between this line of output and the next team.
Constraints: