题目内容:
下列给定程序的功能是:读入一个英文文本行,将其中每个单词的第一个字母改成大写,然后输出此文本行(这里”单词”是指由空格隔开的字符串)。例如,若输入”I aln a student to take the examination”,则应输出”I Am A Student To Take The Examination”。
请改正程序中的错误,使程序能得出正确的结果。
注意:部分源程序在文件MODll.C中,不要改动main函数,不得增行或删行,也不得更改程序的结构!
试题程序:


参考答案:
答案解析: