gets()put().c
来自「一些linux基本函数的测试集,给像我一样的新手看看」· C语言 代码 · 共 20 行
C
20 行
//函数功能:gets()从stdio中读取一个字符串;puts()把一字符串输到stdio中.
#include "string.h"
#include "stdio.h"
int main()
{
char str[6];
int i;
char j;
gets(str);
for(j=0;str[j];j++)
printf("this is the %c time\n",str[j]);
puts(str);
return 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?