宏定义之闰年判断 题解 摘要:解题思路:这题就是判断是否是闰年嘛!简单。判断方法如下:第一、y%4==0并且y%100!=0;第二、y%400==0。注意事项:无。参考代码:#include<bits/stdc++.h>#defi…… 题解列表 2022年05月06日 0 点赞 0 评论 273 浏览 评分:0.0
宏定义之找最大数 题解 摘要:解题思路:用宏定义和自定义函数来找三个数中的最大。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double a,b,c;#define…… 题解列表 2022年05月06日 0 点赞 0 评论 308 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(函数版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int i;char T1(){ char a[100]; gets(a);int n=…… 题解列表 2022年05月06日 0 点赞 0 评论 394 浏览 评分:0.0
阶乘求和 题解 摘要:解题思路:直接暴力阶乘再计算和。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;long long n,x=0,s=1;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 276 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){ char a[10],b[10]; gets(a); gets…… 题解列表 2022年05月06日 0 点赞 0 评论 259 浏览 评分:0.0
完数的判断 题解 摘要:解题思路:没什么好说的。直接看程序吧。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[100005];int main()…… 题解列表 2022年05月06日 0 点赞 0 评论 272 浏览 评分:0.0
二级C语言-阶乘数列 题解 摘要:解题思路:就是30的阶乘和呗。注意事项:要用科学计数法输出。参考代码:#include<bits/stdc++.h>using namespace std;double x=1,s;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 396 浏览 评分:0.0
迭代法求平方根 摘要:解题思路:运用sqrt解决这题。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;double m;int main(){ sc…… 题解列表 2022年05月06日 0 点赞 0 评论 316 浏览 评分:0.0
C语言训练-大、小写问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){ int i=0,L; char a[50]; gets(a);…… 题解列表 2022年05月06日 0 点赞 0 评论 226 浏览 评分:0.0
二级C语言-最小绝对值 题解 摘要:解题思路:和找最小数差不多,只不过是绝对值,在找是要用abs,最后找到后和最后一个数交换,输出操作后的数列。注意事项:无。参考代码:#include<bits/stdc++.h>using names…… 题解列表 2022年05月06日 0 点赞 0 评论 326 浏览 评分:0.0