编写题解 1039: [编程入门]宏定义之闰年判断--解题 摘要:解题思路:注意事项:参考代码:#include <iostream> #define LEAP_YEAR(y) leap(y) //替换为该子函数 using namespace std; char …… 题解列表 2022年03月08日 0 点赞 0 评论 502 浏览 评分:0.0
C++宏定义闰年判断 摘要:解题思路:闰年:能被4但不能被100整除 或 能被400整除注意事项:宏定义换行要用\参考代码:#include<iostream>using name…… 题解列表 2026年04月23日 0 点赞 0 评论 68 浏览 评分:0.0
邪修xxxxxxxxxxxxxxxx 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb…… 题解列表 2025年11月06日 0 点赞 0 评论 277 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am…… 题解列表 2025年04月16日 0 点赞 0 评论 529 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (…… 题解列表 2025年03月21日 0 点赞 0 评论 373 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:要求解此题,首先需要直到如何判断闰年当能被4整除但不能被100整除的是闰年,或者能被100和400整除的是闰年注意事项:需知道定义红宏时,若后面的条件成立则此时会返回1,不成立则返回0参考代…… 题解列表 2024年01月21日 0 点赞 0 评论 670 浏览 评分:0.0
编写题解 1039: 宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=…… 题解列表 2023年03月16日 0 点赞 0 评论 405 浏览 评分:0.0
定义宏,判断是否为闰年 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y…… 题解列表 2022年10月26日 0 点赞 0 评论 392 浏览 评分:0.0
宏定义之闰年判断 摘要: #include #include #include using namespace std; #define LEAP_YEAR(y) fun(y);…… 题解列表 2022年10月12日 0 点赞 0 评论 396 浏览 评分:0.0