二级C语言-阶乘数列 题解 摘要:解题思路:就是30的阶乘和呗。注意事项:要用科学计数法输出。参考代码:#include<bits/stdc++.h>using namespace std;double x=1,s;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 423 浏览 评分:0.0
运用continue巧妙解决问题,简单又便捷! 摘要:#include #include main() { char a[100]; int i,l; gets(a); l=strlen(a); for(i=0;i…… 题解列表 2022年05月06日 0 点赞 1 评论 630 浏览 评分:9.9
完数的判断 题解 摘要:解题思路:没什么好说的。直接看程序吧。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[100005];int main()…… 题解列表 2022年05月06日 0 点赞 0 评论 299 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){ char a[10],b[10]; gets(a); gets…… 题解列表 2022年05月06日 0 点赞 0 评论 274 浏览 评分:0.0
阶乘求和 题解 摘要:解题思路:直接暴力阶乘再计算和。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;long long n,x=0,s=1;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 304 浏览 评分:0.0
[编程入门]自定义函数之字符串反转(函数版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int i;char T1(){ char a[100]; gets(a);int n=…… 题解列表 2022年05月06日 0 点赞 0 评论 417 浏览 评分:0.0
宏定义之找最大数 题解 摘要:解题思路:用宏定义和自定义函数来找三个数中的最大。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double a,b,c;#define…… 题解列表 2022年05月06日 0 点赞 0 评论 337 浏览 评分:0.0
宏定义之闰年判断 题解 摘要:解题思路:这题就是判断是否是闰年嘛!简单。判断方法如下:第一、y%4==0并且y%100!=0;第二、y%400==0。注意事项:无。参考代码:#include<bits/stdc++.h>#defi…… 题解列表 2022年05月06日 0 点赞 0 评论 294 浏览 评分:0.0
宏定义练习之三角形面积 题解 摘要:解题思路:把a、b、c套入题目给出的公式即可。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double a,b,c;int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 410 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char c;int q=0,w=0,e=0,r=0;while((c=getchar())!='\n&#…… 题解列表 2022年05月06日 0 点赞 0 评论 303 浏览 评分:0.0