1: Find the installation path of Visual Studio 2019, copy it, and open it on this computer.
2: Find newc++file.cpp and double-click to open it.
3: Add #define _CRT_SECUER_NO_WARNINGS 1 and save
If the following appears
Go online to download notepad++
Go back to the path you just opened, find newc++file.cpp again, right-click, and choose notepad++ to open
Then add the sentence just now
Save, the following content appears, click Yes
It's almost here, every time you open visual studio, there will be this sentence on the first line, and that's it. If the first line has
In other words, if it still doesn’t work, then there is still one more step to go. Find the file you just created, right-click, select Properties, select C/C++ SDL check, select No, and you can run it.
According to me, it can basically be used, and no more errors will be reported.