如何通过编程求解一个函数的基频 ?
如何通过编程求解一个函数的基频 c
#include //函数:参数(字符串,个数数组) x[0]=字符 x[1]=数字 x[2]=空格 x[3]=其他 void fun(char * str,int x[]) { while(*str!='\0') { if((*str>='A'&& *str='a'&& *str='0' && *str<='9') x[1]++; else if(*str==' ') x[2]++; else x[3]++; str++; } } main() { char p[1024]={'\0'},*s=p; int x[4]={0}; puts("input\n"); gets(s); fun(s,x); printf("字符%d 数字%d 空格%d 其他%d\n",x[0],x[1],x[2],x[3]);
答:if(x>a&&x<b) { y==f(x); printf("%d",y); } else if{printf("%d",y);}详情>>
答:详情>>