请大家看下问题出在那
#include<stdio.h>#define fundlen 50
struct funds{
char bank[fundlen];
double bankfund;
char save[fundlen];
double savefund;
};
double sum( struct funds * );
char my(struct funds *);
int say(int x,int y);
int main(void)
{//struct funds *e;
int a=4,b=5;
struct funds stan={
"gar",
3024.72,
"luck",
9237.11
};
printf("%f\n",sum(&stan));
printf("%s\n",my(&stan));/*输出有错误*/
//e=&stan;
//printf("%s\n",e->bank);
printf("%d\n",say(a,b));
return 0;
}
double sum( struct funds *p)
{return(p->bankfund+p->savefund);
}
char my(struct funds *e)
{return (e->bank);
}
int say(int x,int y)
{return (x+y);
}