C语言问题,正确的代码得不到预期的结果

#include
#define X 10
#define B "booboo"
int main()
{
int age;
int xp;
char name[40] = {0};
printf("please enter your first name");
scanf_s("%s",name);
printf("All right ,%s, what's your age?\n",name);
scanf_s("%d",&age);
xp = age + X;
printf("That's a %s! you must be at least %d.\n",B,xp);
return 0;
}

名字打印不出来,也没有办法输入年龄

我有截图,可是放不上来,我已经把问题放到百度上,那里有我程序运行的截图
http://zhidao.baidu.com/question/434419977088948684.html

我使用的是vs2015

如果使用scanf_s,应该这样:

    scanf_s("%s",name,40);表示最多读入40个字符