求闰年,逻辑表达式出现问题
程序代码:#include <stdio.h>
int main()
{
int a=1600,b=2500;
for(;a<=b;a++)
{
if(a%4==0 && a%400==0 && !a%100==0)break;
printf("year=%4d",a);
}
return 0;
}错误提示C:\Documents and Settings\Administrator\桌面\新建文件夹\Cpp3.cpp(7) : warning C4804: '%' : unsafe use of type 'bool' in operation望高手给予帮助。







很纠结:

