收起
vs 为了安全 需要使用它自身的库 把 scanf 改成 scanf_sint * 是你 x 的地址,需要向存储x地址的这块内存写入数据。
int *
scanf_s("%d", &x);
报告相同问题?