麻烦解释下报错原因
#include<stdio.h>#include <stdlib.h>
struct s{
int a;
int b;
int c;
int d;
int e;
}p;
int main(void)
{
struct s p ;
p.a=1;
p.b=2;
p.c=3;
p.d=4;
p.e=5;
void ma(struct s &p);
return 0;
}
void ma( struct s *q)
{
printf("total=%d",q->a+q->c+q->b+q->d+q->e);
}