中国开发网: 论坛: 程序员情感CBD: 贴子 68757
王中王: 见内:
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/

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录