数据结构-稀疏矩阵快速转置-题解(C语言代码) 摘要: #include #include #define maxsize 12500 typedef struct {int iu; int…… 题解列表 2020年04月20日 0 点赞 0 评论 1535 浏览 评分:8.7
[编程入门]筛选N以内的素数-题解(C语言代码) 摘要:定义变量n,m,i; 本方法求一个数是否为素数?考虑它在2~n-1中有没有能与它相除余数为零的数,如果有就跳过这个数求下一个数,直到求到n为止;没有则输出这个数。 说明:当m=i-1时,说明之前从…… 题解列表 2020年04月24日 0 点赞 1 评论 762 浏览 评分:8.7
通过数组连接 自定义函数之字符串连接-题解(C语言代码) 摘要:# 使用数组连接字符串 **如果需要,可以连string.h函数库都不调用(转为单个字符输入或用循环检查) ## 请注意最后的空字符插入 ```c #include #include…… 题解列表 2020年04月25日 0 点赞 0 评论 1281 浏览 评分:8.7
蓝桥杯算法提高- c++_ch02_02-题解(C++代码) 摘要:```cpp #include using namespace std; int main() { int a,b; char c; cin>>a>>b>>c;…… 题解列表 2020年05月05日 0 点赞 0 评论 703 浏览 评分:8.7
C语言训练-亲密数-题解(C++代码)——map解法 摘要:# 思路 从1开始到3000结束,对每一个数字进行因数和计算。 使用一个map记录所有计算过的数字,每一个元素。 每一次调用函数judge计算出数字a的因数和result后,在map中寻找这个r…… 题解列表 2020年05月07日 0 点赞 0 评论 946 浏览 评分:8.7
数据结构-链表的基本操作-题解(C++代码) 摘要:这里用cin和cout可能会时间超限,全部改用c中的输入和输出,字符串的比较不用string用char类型 ```cpp #include #include #include using n…… 题解列表 2020年05月08日 0 点赞 0 评论 993 浏览 评分:8.7
二级C语言-平均值计算-题解(C语言代码) 摘要:#include int main(){ int a[10];//声明一个可以存储10个整数的数组 int i;//用于循环存储数据 int z=0;//十个数的和,初…… 题解列表 2020年05月17日 0 点赞 0 评论 946 浏览 评分:8.7
Tom数-题解(C语言代码) 摘要: ```c #include int main() { long sum,n;//注意sum和n的类型,要用long类型 sum=0; while((scanf("%ld",&n)…… 题解列表 2020年06月01日 0 点赞 1 评论 1200 浏览 评分:8.7
C语言训练-字符串正反连接-题解(C语言代码)务必熟练使用字符串库函数 摘要:解题思路:字符串长度函数:strlen();字符串连接函数:strcat();参考代码:#include<stdio.h> #include<string.h> int fun(char a[],…… 题解列表 2020年06月22日 0 点赞 1 评论 767 浏览 评分:8.7
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:解题思路:从最小三位数遍历到最大三位数,挨个判断注意事项:参考代码:#include<stdio.h>int main(){ int a,b,x,y,z; for(a=100;a<1000…… 题解列表 2020年06月26日 0 点赞 1 评论 692 浏览 评分:8.7