帮忙看下程序,求指点.....................
#include "stdio.h"void main()
{
int M;
double i,j,m,Tong,;
double Dinge[7][5]={13.37,8.85,4.48,1.85,34.22,
18.14,9.75,4.89,1.98,36.00,
27.06,13.68,5.50,2.35,41.02,
45.02,19.40,5.50,2.84,47.70,
71.93,22.93,9.16,3.22,52.94,
108.23,26.76,9.16,3.64,58.63,
175.22,46.99,27.49,4.98,98.22};
scanf("%d",&i);
printf("\n");
scanf("%d",&M);
m=M/1000.0;
Tong=Dinge[i][0]*m;
printf("7.2f",Tong);
}
错误信息:
: error C2059: syntax error : ';'
: error C2108: subscript is not of integral type
: error C2296: '*' : illegal, left operand has type 'double [5]'
Error executing cl.exe.