C风格的 数组型字符串
char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
char greeting[] = "Hello";
char s1[] = “hi”, s2[] = “hiit”; char ch = ‘i’;
strcpy(s1, s2)
strcat(s1, s2)
strlen(s1)
strcmp(s1, s2)
strchr(s1, ch)
strstr(s2, s1)
s1 = “hiit”
s1 = “hihiit”
2
-1(长度)
(上面的表格后面再完善吧)
(不能用 s1 = s2复制!!!)
C++ 中的 String 类
复制,拼接直接用运算符,长度用size().(后面再加)