sponsored links

字符串

C语言字符串总结

November 30
C语言字符串总结
1.字符串操作 strcpy(p, p1) 复制字符串 原型:strcpy(char destination[], const char source[]); 功能:将字符串Source拷贝到字符串destination中 例如: #include<iostream.h> #include<string.h> void main() { char str1[10] = {" hello world "}; char str2[10] = {" comp