编程练习9
摘要:
1 //删除字符串中字符个数最少的字符 2 #include <iostream> 3 using namespace std; 4 #define N 100 5 6 void remove(char* str,char ch) 7 { 8 int i=0,j,len=strlen(str); 9 int k=len;10 while(i<k)11 {12 if(str[i]==ch)13 {14 for(j=i;j<k-1;++j)15 {16 ... 阅读全文
posted @ 2012-09-12 19:46 lyncre 阅读(156) 评论(0) 推荐(0)
浙公网安备 33010602011771号