正在加载图片...
printi("转换前的字符串为:") StrPrint(&r1) Replace(&rl, chl, ch2) printf("转换后的字符串为:") StrPrint(&r1) printf("颠倒前的字符串为:"), StrPrint(&r1) Diandao( &r1); printi("颠倒后的字符串为:") StrPrint(&rl) printf("请输入要删除的字符:") ch=getchar(; getchar printf("删除前的字符串为:") Str Print(&rl) Delechar(&rl, ch) printf("删除后的字符串为:"), StrPrint(&rl) printf("请输入要查找的一个字符串:") gets(s) Str Assign(&r 2, s) printi("位置是:%dn", StrIndex(&rl,&r2,1); printf("请输入要删除的一个字符串:") gets(s) Str Assign(&r 2, s) printi("删除前的字符串为:") StrPrint(&rl) Delestr(&rl, &r2 printf("删除后的字符串为:") StrPrint(&rl)printf("转换前的字符串为:"); StrPrint(&r1); Replace(&r1, ch1, ch2); printf("转换后的字符串为:"); StrPrint(&r1); printf("颠倒前的字符串为:"); StrPrint(&r1); Diandao(&r1); printf("颠倒后的字符串为:"); StrPrint(&r1); printf("请输入要删除的字符:"); ch = getchar();getchar(); printf("删除前的字符串为:"); StrPrint(&r1); Delechar(&r1,ch); printf("删除后的字符串为:"); StrPrint(&r1); printf("请输入要查找的一个字符串:"); gets(s); StrAssign(&r2, s); printf("位置是:%d\n", StrIndex(&r1, &r2, 1));*/ printf("请输入要删除的一个字符串:"); gets(s); StrAssign(&r2, s); printf("删除前的字符串为:"); StrPrint(&r1); Delestr(&r1,&r2); printf("删除后的字符串为:"); StrPrint(&r1); }
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有