3.编写一个函数,从字符串s的第i个字符开始删除n个字符(注意要检查输入参数)
4.用递归方法求一个n个数的整形数组的最大值
1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 5 void deleteStr(char *param, int startIndex, int number) { 6 char *result = param; 7 int i, length = startIndex + number; 8 9 if(NULL == param || length > strlen(param)) { 10 printf("ERROR"); 11 return ; 12 } else { 13 for(i = 0; i < strlen(param)-length; i++) { 14 *(result + startIndex + i) = *(result + length + i); 15 } 16 *(result + length) = '