大佬,只能打印第一行和获取输入,剩下的出不来
#include <stdio.h>#include<string.h>
int main(void)
{
char name ;
int b;
printf("what's your name?\n");//打印
scanf("%s",name);//获取字符
printf("%s,ok,you can have money\n",name);//打印字符
b=sizeof(name);//获取字符长度
printf("name have %d size\n",b);//打印
return 0;
}
[此贴子已经被作者于2022-4-16 02:12编辑过]