VS2017如何使用scanf函數
前言
在VS2017中C++使用scanf函數,報出
錯誤 C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
解決方法
在代碼頁首行加入如下代碼
#define _CRT_SECURE_NO_WARNINGS