例子:fgets函数

来源:互联网 发布:李小璐开的淘宝店名字 编辑:程序博客网 时间:2024/06/02 06:29

fgets函数

  1 #include <stdio.h>  2   3 int main(void)  4 {  5     char s[10];  6     fgets(s, 10, stdin);  7     printf("%s\n", s);  // Data item is displayed as string  8   9     return 0; 10 }


gcc结果


0 0
原创粉丝点击