当前位置:网站首页>VS Studio 修改C語言scanf等報錯
VS Studio 修改C語言scanf等報錯
2022-04-23 03:36:00 【Cheng_0829】
1、在程序最前面加:#define_CRT_SECURE_NO_DEPRECATE
2、按照vs規定進行修改,例如把scanf改為scanf_s;
3、在"項目" -> “XXX屬性” -> “C/C++” -> “常規” -> "SDL檢查"裏關閉SDL檢查
4、在項目屬性----C/C++ ----命令行中添加:/D_CRT_SECURE_NO_WARNINGS就行了。
版权声明
本文为[Cheng_0829]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230333367388.html
边栏推荐
- File upload vulnerability summary and upload labs shooting range documentary
- 变量、常量、运算符
- Websites frequented by old programmers (continuously updated)
- 2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
- Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)
- The art of concurrent programming (6): explain the principle of reentrantlock in detail
- A hundred dollars for a hundred chickens
- L3-011 direct attack Huanglong (30 points)
- When migrating tslib_ setup: No such file or directory、ts_ open: No such file or director
- Several common methods of multithreading
猜你喜欢
Concepts of objects and classes
PYMOL-note
Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
Wechat applet cloud database value assignment to array error
Install PaddlePaddle on ARM
Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
Database - MySQL -- Navicat import SQL error 1067 - invalid default value for 'paydate‘
Visual programming -- how to customize the mouse cursor
7-1 introduction to finance
Software testing process
随机推荐
Use of rotary selector wheelpicker
Visual programming - Experiment 2
標識符、關鍵字、數據類型
Wechat applet canvas draws a simple asymptotic color of the dashboard
Supersocket is Used in net5 - command
Install PaddlePaddle on ARM
浅学一下I/O流和File类文件操作
QT learning summary
POI create and export Excel based on data
JS - accuracy issues
Chapter VI, Section III pointer
7-2 Tushare
Definition format of array
2022 团体程序设计天梯赛 模拟赛 1-8 均是素数 (20 分)
Create virtual machine
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Three types of cyclic structure
Generate QR code through zxing
Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
Instructions for fastmock