how to solve error C4996: 'scanf': This function or variable may be unsafe (3 methods)

Опубликовано: 24 Июль 2026
на канале: pin
3,346
51

3 methods to solve - Error 1 error C4996: 'scanf': This function or variable may be unsafe in Visual Studio 2017

-----------------------------------------------------------------

1. Debug ➜ Properties ➜ C/C++ ➜ General ➜ Change SDL checks from "Yes" to "No"

2. Insert #define _CRT_SECURE_NO_WARNINGS in the heading.

3. Debug ➜ Properties ➜ C/C++ ➜ Preprocessor ➜ PreprocessorDefinitions ➜ Edit ➜ Add _CRT_SECURE_NO_WARNINGS