因为你是拿一个布尔型的数和数值型数据想与,不安全,把isleapyear()函数的bool型都改成int型试试
你上面的那个声明,int isleapyear(struct data d);应该改成bool isleapyaer(struct data d);