在Visual Studio2019中運行scanf函數時遇到下列問題:
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
而網上的提供的大部分解決方法無非有四種,後面會展現,可是我這裏說的是適用於那種四種方法都不起效果的;
- 首先是準備軟件工做: 下載一個 Notepad++
- 而後打開vs2019屬性
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
- 複製起始位置,而後在隨便打開一個文件夾,在最上方輸入所複製的路徑
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
強調:注意複製的路徑必定要刪除兩邊的引號!!! !!! !!! !!!! !!! !!!
- 打開 vs , 而後打開vcprijectitems.
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
- 使用notepad++打開newc++
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
- 而後寫入#define _CRT_SECURE_NO_WARNINGS,保存會看到彈出這個,點是,而後再保存.
. . 正片開始!!!
.c++
.ide
.函數
..net
.blog
第一步:
找到本身的項目名,而後右鍵打開屬性.圖片
![img](http://static.javashuo.com/static/loading.gif)
第二步:
依次打開 c/c++ ----> 高級 -----> 禁用特定警告 ------> 編輯 get
![image-20210220091802315](http://static.javashuo.com/static/loading.gif)
第三步:
輸入之後,點擊肯定,在點擊應用,在肯定,完畢!it
![image-20210220092010838](http://static.javashuo.com/static/loading.gif)
未有警告,未有報錯,successful!!!
![在這裏插入圖片描述](http://static.javashuo.com/static/loading.gif)
---這裏是網上流傳的比較經常使用的4種解決方法(轉載)---io
若是有用能麻煩點個贊嗎??class