希望对您有帮助:https://blog.csdn.net/it_xiangqiang/category_10581430.html
vs 里面推荐使用的是scanf_s来代替scanf
用scanf_s