编写题解 1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define MAX(x,y,z) (x>y?x:y)>z?(x>y?x:y):z double max(double x,doubl…… 题解列表 2022年03月08日 0 点赞 0 评论 283 浏览 评分:0.0
编写题解 1040: [编程入门]实数的打印--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); for(int i=1;i<=3;i++){ for(…… 题解列表 2022年03月08日 0 点赞 0 评论 285 浏览 评分:0.0
编写题解 1039: [编程入门]宏定义之闰年判断--解题 摘要:解题思路:注意事项:参考代码:#include <iostream> #define LEAP_YEAR(y) leap(y) //替换为该子函数 using namespace std; char …… 题解列表 2022年03月08日 0 点赞 0 评论 414 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积--解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)usi…… 题解列表 2022年03月08日 0 点赞 0 评论 237 浏览 评分:0.0
编写题解 1037: [编程入门]宏定义的练习--解题 摘要:解题思路:注意事项:参考代码:#include <iostream>#define REMAINDER(num1, num2) (num1 % num2)using namespace std;int…… 题解列表 2022年03月08日 0 点赞 0 评论 244 浏览 评分:0.0
编写题解 1048: [编程入门]自定义函数之字符串拷贝--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int main(){ …… 题解列表 2022年03月08日 0 点赞 0 评论 507 浏览 评分:0.0
蓝桥杯算法提高VIP-任意年月日历输出C++ 摘要:```cpp #include using namespace std; int a[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 }; bool…… 题解列表 2022年03月08日 0 点赞 0 评论 539 浏览 评分:0.0
编写题解 1036: [编程入门]带参数宏定义练习--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define change(a,b) t=a,a=b,b=tint main(){int a,b,t;scanf("%d%d",&a,…… 题解列表 2022年03月08日 0 点赞 0 评论 329 浏览 评分:0.0
编写题解 1035: [编程入门]自定义函数之字符类型统计--ctype.h库 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>#include <ctype.h>//字符串函数包含的头文件int main(){ int…… 题解列表 2022年03月08日 0 点赞 0 评论 369 浏览 评分:0.0
多项式输出题解 摘要:解题思路:注意事项:参考代码:import java.util.LinkedList;import java.util.Scanner;public class Main { public st…… 题解列表 2022年03月08日 0 点赞 0 评论 377 浏览 评分:9.9