[阅读: 573] 2004-12-23 07:30:12
fgets reads characters from stream into the string s. The function stops reading when it reads either n
- 1 characters or a
newline character whichever comes first.
fgets retains the newline character at the end of s. A null byte is appended to s to mark the end of the string.
这是BCB标准库函数的帮助说明,提到了会以换行符为结束标志给并会保留换行符到字串中。
上面贴子中我说的回车和换行是我理解错误,呵呵
http://wangzw.wordpress.com/
个性化台历、日历制作
http://shop33697570.taobao.com/
