在第十行有argument list syntax error帮忙改下

[复制链接]
查看11 | 回复1 | 2010-6-2 18:09:24 | 显示全部楼层 |阅读模式
typedef struct empl
{

char number[20];

char name[20];

intpay;

intsubsidy;

int costlive;

empl *next;
};
int show(empl *p)
{

if(!p)return 0;

printf("number\t mame\t pay\t subsidey\t costlive\n");

printf("%s\t %s\t %d\t %d\t %d\n",p->number,p->name,p->pay,p->subsidy,p->costlive);

return 1;
}

回复

使用道具 举报

千问 | 2010-6-2 18:09:24 | 显示全部楼层
typedef 是起别名的用法。而你在后面并没有起别名。改成这样试试。typedef struct employee{
char number[20];
char name[20];
intpay;
intsubsidy;
int costlive;
employee *next;}empl;int show(empl *p){
if(!p)return 0;
printf("number\t mame\t pay\t subsidey\t costlive\n");
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行