这个,输入的时候有点奇葩。不知道为什么
不知道为什么要输入三个字符串,,不是两个就行了么?
#include <stdio.h> int main (void) { char name1[11],name2[11]; int count; printf("Please enter 2 names.\n"); count = scanf("%s%s\n",name1,name2); printf("I read the %d names.They are %s and %s.\n",count,name1,name2); return 0; }