'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead.解决办法

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.

解决办法:

打开项目属性,如图,加入/D "_CRT_SECURE_NO_WARNINGS" 

'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead.解决办法