c语言4种字符串处理函数具体实现 int mystrcmp(char *a,char *b) { while(*a) { if(*a > *b) return 1; else if(*a < *b) return -1; a++; b++; } if(*a == *b) return 0; else return -1;
C语言字母小写转大写 #include int main(int argc, char *argv[]) { int s; char a[100]; printf("please input string: "); scanf("%s",a); s = mystr(a); printf("%d\n",s); puts(a