编程题:函数gets()与scanf()的区别。
#include<stdio.h>
void main()
{char str1[20],str2[20];
gets(str1);
scanf("%s",str2);
printf("str1:%s\n",str1);
printf("str2:%s\n",str2);
}
转载于:https://blog.51cto.com/c10086/1413804
编程题:函数gets()与scanf()的区别。
#include<stdio.h>
void main()
{char str1[20],str2[20];
gets(str1);
scanf("%s",str2);
printf("str1:%s\n",str1);
printf("str2:%s\n",str2);
}
转载于:https://blog.51cto.com/c10086/1413804