69,369
社区成员
发帖
与我相关
我的任务
分享
#include "string.h"
int main()
{
char temp33[10];
char temp[10];
int num=0,i=0;
printf("the input is === %s \n");//这里没输出
memset(temp, 0, sizeof(temp));
//printf("the input is === %s \n"); //这行打开会出错
printf("please input a word ");
scanf("%s",temp33);fflush(NULL);
scanf("%s", temp);
printf("-----------------------------------\n");
//printf("the input is === %s \n", temp);
printf("the input is === %s \n");fflush(NULL); //这里输出了temp2
printf("the input is === %s \n");fflush(NULL); //这里输出了temp2
for(i=0;i<10;i++)
{
printf("temp[%d] === [%c]\n", i, temp[i]);
}
//printf("the input is ===== %s \n"); //这里打开也出错
}