scanf系列函数具有一个最大宽度值,至少IEEE Standard 1003 - 2001清楚地规定这些函数一定不能读取超过最大宽度的数据。
The scanf family of functions has a maximum width value, and at least the IEEE Standard 1003-2001 clearly states that these functions must not read more than the maximum width.
演示如何读取固定宽度的文本文件。
应用推荐