C++简单写法--------------------------------------
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (……
1039-宏定义闰年判断c++
摘要:原题链接:[https://www.dotcpp.com/oj/problem1039.html](https://www.dotcpp.com/oj/problem1039.html)
参考代……
编写题解 1039: 宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=……
1039: [编程入门]宏定义之闰年判断
摘要:```cpp
#include
#define LEAP_YEAR(y) (y%100!=0&&y%4==0||y%400==0)?'L':'N'
int main()
{
int y;……
定义宏,判断是否为闰年
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y……
题目 1039: [编程入门]宏定义之闰年判断
摘要:```cpp
#include
using namespace std;
int main()
{
int a;
cin >> a;
if (a % 400 ==……