error C4996: 'strcpy': This function or variable may be unsafe.


vs2012用strcpy遇到的錯誤。

錯誤描述:error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

如果還想繼續使用strcpy可以這樣做:

image

image

image

然后在運行就不會有錯了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM