#includestdio<stdio.h> #define N 3 struct SS { int num; char name[10]; char se

这里面是因为strcpy_s需要输入3个参数洏你只输入了2个参数。所以会报错

这样就忽略了使用新函数而报错了。

(2)添加strcpy_s函数的输入参数

对于字符串拷贝函数来说

中间第二个參数是要拷贝的字符个数。因此

我要回帖

更多关于 includestdio 的文章

 

随机推荐