1 2 3 4

C语言之字符串标准输入输出

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{

char add[20];

//输入
printf("请输入字符串的内容: \n");
gets(add);


//输出
printf("您输入的字符串的内容是: \n");
puts(add);




system("pause");
return 0;
}

posted on 2020-12-10 22:11  三日坊主i  阅读(119)  评论(0)    收藏  举报

导航