strcpy用法例子 c语言,函数strcpy是完全覆盖吗?

c语言,函数strcpy是完全覆盖吗?strcpy函数的作用是复制字符串,strcpy(str1?定义两个字符串变量,然后直接赋值:#include<iostream>#include<s

c语言,函数strcpy是完全覆盖吗?

strcpy函数的作用是复制字符串,strcpy(str1?

定义两个字符串变量,然后直接赋值:#include<iostream>#include<string>使用namespace stdint main(){string str1=“我爱中国!“,str2str2=str1cout<<”str1:“<<str1<<endlcout<<”str2:“<<str2<<endlreturn 0}