宏定义与自定义 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define arr_1(a,b,c) ((a>b)?a:b)>c?((a>b)?a:b):cfloat max(float l,f…… 题解列表 2022年10月16日 0 点赞 0 评论 729 浏览 评分:9.9
三目运算符简化闰年 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) (y%4==0&&y%100!=0||y%400==0)?'L':'N…… 题解列表 2022年10月16日 0 点赞 0 评论 1172 浏览 评分:9.7
宏定义三角简化 摘要:解题思路:宏定义函数求解注意事项:注意不要超出界限参考代码:#include<stdio.h>#include<math.h>#define a_1(a,b,c) (a+b+c)/2#define s…… 题解列表 2022年10月16日 0 点赞 0 评论 782 浏览 评分:6.0
彩票解题思路 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(),cnt; int[] arr1 = new int…… 题解列表 2022年10月16日 0 点赞 0 评论 543 浏览 评分:9.9
宏定义与指针区别 摘要:解题思路:注意事项:参考代码:指针是访问 而宏定义是机械替换#include<stdio.h>#define swap(a,b){int temp;temp=a;a=b;b=temp}int main…… 题解列表 2022年10月16日 0 点赞 0 评论 702 浏览 评分:6.0
(【C++】数组)数字的处理与判断——一种思路 摘要:**以下是我的代码** ```cpp #include using namespace std; int main() { int num,wei; cin>>num; if(n…… 题解列表 2022年10月16日 0 点赞 0 评论 602 浏览 评分:0.0
数列排序简单思路 摘要:解题思路:注意事项:参考代码:# include <iostream> using namespace std; int main() { int n; cin >> n; w…… 题解列表 2022年10月16日 0 点赞 0 评论 652 浏览 评分:0.0
2783: 判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10&&a<=99){ …… 题解列表 2022年10月16日 0 点赞 0 评论 844 浏览 评分:9.2
保留字母(使用cctype头文件) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cctype>#include<string>using namespace std;int main(){ …… 题解列表 2022年10月16日 0 点赞 0 评论 511 浏览 评分:9.9
线性表的有序合并之【直接在head1的后面接上head2】(与我的第一篇文章雷同) #include#includestructlinklist{intdata;structlinklist*next;};structlinklist*create_head(intlen)//创建链表{structlinklist*head;structlinklist*p, 题解列表 2022年10月15日 0 点赞 0 评论 703 浏览 评分:9.9