一篇短文,有三行文字,每行有80个字符。统计出其中英文大写字母,小写字母,数字,空格以及其他字符各有多少。 #include<stdio.h> int main() { int i, j,a,b,c,w,other; //int a = 0; int b = 0; int c = 0; int s= 0;int other = 0; a = b = c = s = other = 0; char
默认字符串从1开始数.. int strndel(char *string, int start, int length){char newstring[MAX_SIZE], add[MAX_SIZE];int i, j;int len = strlen(string);if(start>= len){ //起始位置超出字符串长度,直接打印原字符串printf("%s\n",strin