![]() |
#2
caochuan20002010-06-16 18:13
|
教科书上有这样一道题目,有谁能帮我解答下?
编写一个程序,它使用一个char数组和循环来每次读区一个单词,直到用户输入done为止。随后,该程序指出用户输入了多少个单词(不包括done在内)。下面是该程序的运行情况:(粗体字为用户输入)
Enter words (to stop,type the word done):
anteater birthday category dumpster envy finagle geometry done for sure
You entered a total of 7 words.