Show Name (2)
-
Re-write the main() function of your program in the previous exercise so that it will read
Students' names from the standard input, instead of hardwired these data in
your program.
-
With the new Print() function defined in your previous exercise,
your program should be
smart enough to show all the students' names in a correct way.
For example, the input
東坡 蘇
宗元 柳
Sandra Bullock
Julia Roberts
will generate the following output
蘇東坡
柳宗元
Sandra Bullock
Julia Roberts