C语言中如何用 gets,put()


C语言中如何用 gets,put()


gets()、puts()都是针对字符串类型处理的 , 传入的参数是char *型 , 或char[]型gets()是输入字符串函数 , puts()是字符串输出函数例如:char *a;gets(a);或者:char a[10];gets(a);相当于:scanf("%s",a);输出函数:puts(a);相当于:printf("%s\n",a);
【C语言中如何用 gets,put()】

    猜你喜欢