数组排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<stdlib.h>#define N 10000int cmp(const void *z,const void *…… 题解列表 2018年11月28日 0 点赞 0 评论 779 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 (C++代码) 摘要:正常解题思路: 直接从1000遍历到9999,然后拆分后判断。参考代码:#include<bits/stdc++.h> using namespace std; //typedef unsi…… 题解列表 2018年11月28日 0 点赞 0 评论 772 浏览 评分:0.0
巨大的数(快点开看一下吧) 摘要:解题思路:利用数组存储每一次输入的数字,并且计算其余数的乘积注意事项:不能使用c++的文件头参考代码://#include<bits/stdc++.h>//using namespace std;#i…… 题解列表 2018年11月29日 0 点赞 0 评论 1233 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码)新手数组做法 摘要:解题思路:新手数组做法注意事项:我习惯用数组写,先输入要输入的个数(count),然后用for循环讲count个数字输入。再判定是否为偶数,最后相加输出参考代码:int main(){int a[10…… 题解列表 2018年11月29日 8 点赞 2 评论 727 浏览 评分:0.0
C语言训练-计算1977!* (C语言代码) 摘要:解题思路: 1977!的值不超过一万位,用一个含有10000个元素的整型数组x存放结果 每个元素存放一位,x[0]存放个位数字,x[1]存放十位数字,以此类推, 假如8!计算出来的值…… 题解列表 2018年11月29日 1 点赞 0 评论 1459 浏览 评分:0.0
蓝桥杯基础练习VIP-字符串对比 (C++代码)STL转大小写函数介绍!!! 重磅惊喜!!别错过! 摘要:解题思路: 利用STL的 transform()函数 可以把字符串全部转成大写或者小写,对第三的判断非常简单!!注意事项: transform()的参数介绍 (原字符串起始,原字符串结束,新字符…… 题解列表 2018年11月29日 0 点赞 0 评论 875 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组 (C++代码) 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <…… 题解列表 2018年11月29日 0 点赞 0 评论 736 浏览 评分:0.0
弟弟的作业 (C语言代码) 摘要:#include "stdio.h" #include "string.h" int stoi(int n, char s[]){ int a = 0,t=1…… 题解列表 2018年11月29日 0 点赞 0 评论 601 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include "stdafx.h"int ged(int a,int b){int r,t;if(a<b){t=a;a=b;b=t;} r=a%b;while(…… 题解列表 2018年11月29日 0 点赞 0 评论 492 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>*/int main(){ int a[10],i,min,j,max,pos=0,POS=0,temp; for(i=0…… 题解列表 2018年11月29日 0 点赞 1 评论 369 浏览 评分:0.0