[此贴子已经被作者于2016-12-29 13:03编辑过]
char s[100]={'\0'}; float t=0.0; scanf("%s%f",s,&t); printf("==================\n"); printf("你所输入的数据是 :\n 字符串:%s\n 浮点数据:%f \n",s,t);