Follow the path VisualStudio\Common7\IDE\VC to find the folder VCProjectItems:
Right click to grant access permission -> Specific user
Click “share”
Enter the folder VCProjectsItems and open the file newc++file.cpp with Notepad. Paste the following into the file and save:
#define _CRT_SECURE_NO_WARNINGS 1
Right-click the folder VCProjectItems and click Properties -> Share -> Advanced sharing, click “share this folder” to uncheck it, and click “apply” and “OK”.
This will solve the problem. Create a new C/C + + file in vs. you can see the following code on the first line:
#define _CRT_SECURE_NO_WARNINGS 1
In this way, no error will be reported when using functions such as scanf(), printf().
Read More:
- How to solve the problem that the console window disappears in a flash after visual studio 2017 runs
- Solve the problem of visual studio console flashback
- error C4996: ‘scanf‘: This function or variable may be unsafe.Visual Studio Series compilers report errors using scanf function
- How to Add migrations in Visual Studio for Mac
- Solution of command line window flashback when visual studio runs C + + program
- Solve the problem of flash back in Visual Studio 2010
- Solve the problem of “Visual Studio debugging flash back”
- The problem of flash back by pressing enter window when debugging or executing program in Visual Studio C
- Detailed steps for installing Visual Studio 2010 + Intel parallel studio Xe 2013 and configuring mpich2
- Error: Microsoft Visual C + + 14.0 is required. Get it with “Microsoft Visual C + + build tools” problem
- Error: Microsoft Visual C + + 14.0 is required. Get it with “Microsoft Visual C”++
- Solution to the flash of visual studio 2017 running program
- Solution to flash back of visual studio 2017 running program
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- Solution to the flash of visual studio console program output window
- Visual studio code shortcut
- Solution to the flashback of visual studio output window
- How to solve fatal error C1010!
- The solution to the black window flash of running program on Visual Studio
- Visual studio 2013 compiles vtk7.1.0