Code Bye

怎么修改


这个要怎么修改?
解决方案

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.

5

或直接用2个参数的用法
两个参数时:
errno_t strcpy_s(
char (&strDestination)[size],
const char *strSource
); // C++ on

10

strcpy_s(qwords[i], SIZE, temp);

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明怎么修改