strcpy_s咋用??
小弟在vc++中用strcpy,警告如下:
e:\madebyben\person\person\person.cpp(28) : warning C4996: “strcpy”被声明为否决的
c:\program files\microsoft visual studio 8\vc\include\string.h(73) : 参见“strcpy”的声明
消息:“This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.”
这个VC++2005的警告啥意思??
[解决办法]
可以不理他,也可以
把strcpy改为strcpy_s,如果目标是 char ab[100];这种数组定义的话