正在加载图片...
3、c语言的串函数 注:用C语言处理字符串时,要调用标准库函数 #includesstring.h> 串长度: int strlen(char*str); 串拷贝:char* strep(char*sr,char*sr2); 串比较: int strcmp( char *strl,char*str2); 字符定位:char* strchr(char*sr; char ch 子串查找: char *strstr((char*s,char*2); 串连接:char* strcat( char *str1, char *str2)3、C语言的串函数 串长度:int strlen(char *str); 串拷贝:char *strcpy(char *str1,char *str2); 串比较:int strcmp(char *str1,char *str2); 字符定位:char *strchr(char *str,char ch); 子串查找: char *strstr(char *s1,char *s2); 串连接:char *strcat(char *str1,char *str2); …… 注:用C语言处理字符串时,要调用标准库函数 #include<string.h>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有