#include<stdio.h>
struct good{int a;char b,c;char d[6];struct*link;};
struct good*f,*g,*head;
void main()
{head=(struct good*)molloc(sizeof(struct good));
head->link=NULL;
tail=head;
node=(struct good*)molloc(sizeof(struct good));
node->a=10;
node->b=r;
node->c=h;
node->d="china";
node->link=NULL;
tail->link=node;
tail=node;
};
: error C2065: 'molloc' : undeclared identifier
: error C2065: 'tail' : undeclared identifier
: error C2440: '=' : cannot convert from 'struct good *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
: error C2065: 'node' : undeclared identifier
: error C2440: '=' : cannot convert from 'struct good *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C : error C2227: left of '->a' must point to class/struct/union
C) : error C2227: left of '->b' must point to class/struct/union
C: : error C2065: 'r' : undeclared identifier
C : error C2227: left of '->c' must point to class/struct/union
C error C2065: 'h' : undeclared identifier
C: : error C2227: left of '->d' must point to class/struct/union
error C2227: left of '->link' must point to class/struct/union
C:\P: error C2227: left of '->link' must point to class/struct/union
这是哪错啦,,,,,