C语言新手问题
#include <stdio.h>int main(void){ int age; // variable float assets; // variable char pet[30]; // string printf("Enter your age, assets, and favorite pet.尀n"); scanf_s("%d %f", &age, &assets); // use the & here scanf_s("%s", pet); // no & for char array printf("%d $%.2f %s尀n", age, assets, pet); int d; scanf_s("%d", &d);}为毛我输入了字符dog给 pet ,但是没有显示 dog。。。还有控制台打印后就一闪而过,怎么让他留下来?int d;scanf_s("%d", &d);这个根本就不给机会输入。。。我也不懂怎么回事一共三个问题,还望详细解答用的是Visual Studio 2013