/** * Delete any character in a given String. * @param inString the original String * @param charsToDelete a set of characters to delete. * E.g. "az\n" will delete 'a's, 'z's and new lines. * @return the resulting String */ public static String…
#include <stdio.h> #include <string.h> #define NR(x) sizeof(x)/sizeof(x[0]) int Del_char(const char *input, char *output) { int i , j , k = 0; int flag ; int len ; //判断输入输出的字符串数组是否为空 if(input == NULL || output == NULL) { //如果为空,返回错误码 return -1…