C语言入门,小问题求大神帮解答
#include<stdio.h>#define B "booboo"
#define X 10
int main(void)
{
int age;
int xp;
char name[40];
printf("Please enter your first name.");
scanf_s("%s", name, 40);
printf("All right ,%s,what's your age?",name);
scanf_s("%d",& age);
xp = age + X;
printf("That's a %s! You must be at least %d.\n", B, xp);
return 0;
}
第二个scanf_s怎么不运行了?刚试了%d 前面加了一个空格也不能纠正。大神求解答。