Farmer John is about to submit an annual report about his cows. He's supposed to list the cows by name, but the sheet he's filling out asks for a last-name-first format, and all his notes on the cows list their names in the other order. Being somewhat lazy, FJ would rather not have to switch the names around every time. Write a program to switch a cow's names for him.None of FJ's cows has a first or last name longer than 30 characters.
Farmer John is about to submit an annual report about his cows. He's supposed to list the cows by name, but the sheet he's filling out asks for a last-name-first format, and all his notes on the cows list their names in the other order. Being somewhat lazy, FJ would rather not have to switch the names around every time. Write a program to switch a cow's names for him. None of FJ's cows has a first or last name longer than 30 characters.
(图片来源网络,侵删)