請(qǐng)教各位大神,實(shí)在不知道哪錯(cuò)了
#include
int main() { ? ?int year = 2014; //今年是2014年 ? ?//補(bǔ)全一下代碼 ? ?if((year%4==0&&year%100!=0)||year%400==0) ? ?{ ? ? ? ?printf("%s\n","今年是閏年"); ? ?} ? ?else ? ?{ ? ? ? ?printf("%s\n","今年是平年"); ? ?} ? ?return 0; } 沒(méi)錯(cuò)???為什么?
2017-05-20
頭文件不對(duì)#include <stdio.h>你的嘆號(hào)不是英文格式的