题解 1039: [编程入门]宏定义之闰年判断

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1039 我不太喜欢按照规矩来

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>#define LEAP_YEAR(y) y%4==0&&y%100!=0||y%400==0int ……

宏定义之闰年判断-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) y=n%400int main(){     int n,y;     scanf("%d",……

C++代码宏定义闰年判断

摘要:解题思路:四年一闰;百年不闰,四百年再闰if ((y%4==0) and (y%100!=0) or (y%400==0)) cout<<&#39;L&#39;<<endl;else cout<<&#……

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) s=y%4,n=y%100,t=y%400int main(){ int y,t,s,n; s……

宏定义之闰年判断

摘要:```cpp #include using namespace std; #define LEAP_YEAR(y) if((y%100!=0&&y%4==0)||y%400==0){cout……