level 1
换行不是\n控制的吗?应该puts("\n");才对啊
2006年08月27日 08点08分
1
level 1
唉,大家都不先自己查资料的么~~~here is the MSDN RemarksThe puts function writes string to the standard output stream stdout, replacing the string’s terminating null character ('\0') with a newline character ('\n') in the output stream.
2006年08月27日 08点08分
2
level 1
看不懂英语,查资料也没用啊,MSDN有没有汉化的?
2006年08月27日 08点08分
3
level 7
大概意思就是说puts()函数会将输出流中的'\0'替换为'\n'
2006年08月28日 00点08分
4
level 0
哦,原来如此,那他怎么知道替换哪个\0替换离他最近的那个吗?
2006年08月28日 08点08分
5
level 6
如果是故意设的多个'\0'呢?再有,把'\0'换成'\n',那么如何结束输出?不是还要继续下去?
2006年08月28日 13点08分
8
level 7
或者这样说在输出流的尾部加入一个'\n',这样可以理解了吧……
2006年08月28日 14点08分
9