编程题:函数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);

}

编程题:函数gets()与scanf()的区别。 - 文豪 - WELCOME MY BLOG.