void getEmpMouth(double mouth[]){ while(1){ int i=0; int j=0; printf("输入月份:"); fflush(stdin); scanf("%d",&j); mouth[j][i]=j; i++; printf("输入应发工资:"); fflush(stdin); scanf("%lf",&mouth[j][i]); i++; printf("输入水电费:"); fflush(stdin); scanf("%lf",&mouth[j][i]); i++; printf("输入税金:"); fflush(stdin); scanf("%lf",&mouth[j][i]); i++; for(i=0;i<empCount;i++) { money=mouth[j][3]; if( money<3000) { mouth[j][3]=0; mouth[j][4]= money-mouth[j][3]-mouth[j][2]; } else if((money<4000)&&(money>=3000)) { mouth[j][3]=(money-3000)*0.05; mouth[j][4]= money-mouth[j][3]-mouth[j][2]; } else { mouth[j][3]=(money-3000)*0.05+(money-4000)*0.1; mouth[j][4]= money-mouth[j][3]-mouth[j][2]; } } } }错误在哪
时间: 2023-05-29 09:03:58 浏览: 76
C语言中指针 int *p=0;和int *p;*p=0;和”&“的关系和区别详解
As an AI language model, I am programmed to understand and process the concept of "null". In computer programming, "null" typically refers to a value that represents the absence of a meaningful value or a lack of data. It can be used to indicate an empty variable, a missing data point, or a non-existent object. The use of null values can help simplify code and reduce errors, but can also create challenges in data analysis and processing.
阅读全文