Select a Poem
- Suppose you have 3 files in your current working directory:
- poem01.txt 江雪
- poem02.txt 登鸛鵲樓
- poem03.txt 尋隱者不遇
- Write a program to prompt the user to select a number, and the
corresponding poem will be printed.
The program may run as follows:
0. Exit
1. 江雪
2. 登鸛鵲樓
3. 尋隱者不遇
Your choice -- 3
松下問童子,
言師採藥去。
只在此山中,
雲深不知處。
0. Exit
1. 江雪
2. 登鸛鵲樓
3. 尋隱者不遇
Your choice --