fgets函数详解 fgets函数详解 fgets函数从流中读一行或指定个字符,原型是char *fgets(char *s, int n, FILE *stream);从流中读取n-1个字符,除非读完一行,参数s是来接收字符串,如果成功则返回s 的指针,否则返回NULL。形参注释:*s结果数据的首地址;n-1:一次读入数据块的长度,其默认值为1k,即1024;...
更多“fgets(sendline,1024,stdin); n = strlen(sendline); 以上程序运行完毕后,n的值为1024”相关的问题 第1题 I often feel lonely when I engage in my online learning.()? I join the online course community. A. How do you solve this problem B. How do you think about it C. How often...