程序改错:功能:输入一个字符串,过滤此串,滤掉字母字符,并统计新生成串中包含的字符个数。 例如:输入的字符串为ab234$df4,则输出为: The new string is 234$4 There are 5 char in the new string.。
程序改错:功能:编写一个函数,该函数可以统计一个长度为3的字符串在另一个字符串中出现的次数。 例如:假定输入的字符串为:asdasasdfgasdaszx67asdmklo,字符串为:asd,则应输出n=4。