#include "stdio.h"
struct WORD1
{
char tag;
int size;
}WORD1;void main()
{
struct WORD1 *temp,foot;
*temp=foot;
foot.tag=0;
temp->tag=0;
}
struct WORD1
{
char tag;
int size;
}WORD1;void main()
{
struct WORD1 *temp,foot;
*temp=foot;
foot.tag=0;
temp->tag=0;
}
只有两个警告
foot没有初始化
temp没有初始化
应该是:
temp=&foot;
{
char tag;
int size;
}WORD1;
第一个WORD1和第二个WORD1有没有重复!
尝试把第二个WORD1改名看看.
int int;
吗?
#include "stdio.h"
struct WORD1
{
char tag;
int size;
}WORD1;void main()
{
struct WORD1 *temp,foot;
temp=&foot;
foot.tag=0;
temp->tag=0;
}