- 博客(1)
- 收藏
- 关注
原创 bool型判断一年是否是闰年
#include #include int main() { int year; bool leap; scanf("%d", &year); if (year % 4 == 0) { if (year % 100 == 0) { if (year % 400 == 0) leap = true; else leap = false; } el
2017-08-15 11:01:14 1133
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人