
这个要怎么修改?
解决方案
5
函数参数写反了 看定义 errno_t strcpy_s(char *strDestination,size_t numberOfElements,const char *strSource);
5
strcpy_s的用法是:
errno_t strcpy_s(
char *strDestination,
size_t numberOfElements,
const char *strSource
);
第2个参数才是size.
errno_t strcpy_s(
char *strDestination,
size_t numberOfElements,
const char *strSource
);
第2个参数才是size.
5
或直接用2个参数的用法
两个参数时:
errno_t strcpy_s(
char (&strDestination)[size],
const char *strSource
); // C++ on
两个参数时:
errno_t strcpy_s(
char (&strDestination)[size],
const char *strSource
); // C++ on
10
strcpy_s(qwords[i], SIZE, temp);