该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include
#include
void main()
{
void input(float*q[6],int n);
void output(float*q[6],int n);
int n;
float a[20][6];
printf("please enter the number of the students.<=20\n");
scanf("%d",n);
printf("n=%d",n);
printf("please enter the scores of the students\n");
input(a,n);
system("cls");
printf("all the students'scores are as follow:\n");
output(a,n);
printf("\n");
}
void input(float*q[6],int n)
{
int i,j;for(i=0;i
{
printf("please enter the NO.i student's ID.\n");
scanf("%f",*(q+i));
printf("please enter this student's scores.\n");
for(j=1;j<=5;j++)
scanf("%f",*(q+i)+j);
}
}
void output(float*q[6],int n)
{
int i,j;
for(i=0;i
{
for(j=0;j<=5;j++) printf("%5d",*(*(q+i)+j));printf("\n");
}
}
错误提示是这样的: warning C4047: 'function' : 'float ** ' differs in levels of indirection from 'float [20][6]'warning C4024: 'input' : different types for formal and actual parameter 1
我不知道怎么改?麻烦帮一下忙。