扫描 arr 函数问题。
void scan_arr(double ar[3][5]) // Declares that it is a 3 x 5
{
int x;
int y;
printf("Enter arrays of 3x5\n");
for( x = 0; x < 3; x++ ) // Shows that this loop shall be done 3 times
{
for( y = 0; y < 5; y++ ) // Shows that 5 times * the number of the first loop
{
scanf("%lf",ar[x][y]); // Scans @ x * y and terminates after first input
}
}
}