我用strcpy(a,b)之后出现这样的错误,所以不能用strcpy了吗?
#include<iostream>
#include<string.h>
using namespace std;
int main(){
char a[9] = "abc";
char *b = new char[10];
strcpy(b, a);
}
错误 1 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. e:\wj\vs wj original\just for lx\just for lx\just for lx.cpp 10 1 just for lx