[编程入门]选择排序-题解(C语言代码) 摘要:解题思路:排序主要靠函数max来实现,其中max实现原理:外层循环控制数组中元素的个数(因为每次i--过程中相当于下一次运算忽略掉当前数组最后一位,即数组最大值),内层循环负责找出当前数组最大元素的索…… 题解列表 2020年09月07日 0 点赞 0 评论 551 浏览 评分:0.0
[编程入门]自定义函数处理素数-题解(C语言代码) 摘要: ```c #include void f1(int n) { int i,a=0; //素数的个数计数 for(i=2;i…… 题解列表 2020年09月07日 0 点赞 0 评论 566 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串跳步-题解(C语言代码) 摘要:解题思路:注意事项:1、数组长度需要大一点 2、注意i+=step不要超过数组长度参考代码:#include <stdio.h>int main(void){ in…… 题解列表 2020年09月07日 0 点赞 0 评论 851 浏览 评分:0.0
[编程入门]二维数组的转置-题解(C语言代码) 摘要:很多答案都是在主函数里实现,但是题目要求的是要调用函数 ```c #include void zhuanzhi(int arry1[3][3],int arry2[3][3]) /…… 题解列表 2020年09月07日 0 点赞 0 评论 790 浏览 评分:0.0
[编程入门]数组插入处理-题解(C语言代码) 摘要:解题思路:代码有些呆板,但是有兴趣的话可以看看,根据三个条件分成六种情况: 1. 数组的排序规律,递增还是递减 2.与原数组第一个数字的关系 3.与原数组最后一个数字的关系注意事项:当插入数字与收尾无…… 题解列表 2020年09月07日 0 点赞 0 评论 953 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:#include <stdio.h>typedef struct Zero{ int years; //年 int month; //月 int day; //日 …… 题解列表 2020年09月08日 0 点赞 0 评论 610 浏览 评分:0.0
[编程入门]自定义函数之数字分离-题解(C语言代码) 摘要:```c #include void fenli(int num) { int a,b,c,d; a = num / 1000; //取千位上的数字 b…… 题解列表 2020年09月08日 0 点赞 0 评论 724 浏览 评分:0.0
[编程入门]结构体之成绩统计2-题解(C语言代码) 摘要:解题思路:注意事项:参考代码://首先定义学生数据的结构体struct stu{ char number[10]; char name[20]; int score[3];};/…… 题解列表 2020年09月08日 0 点赞 0 评论 827 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:```c #include #include void tongji(char a[100]) //定义函数,数组做形参 { int sum1=0,sum2=0,sum3=0,…… 题解列表 2020年09月08日 0 点赞 0 评论 665 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:注意事项://pow函数返回值是double类型。参考代码:#include <stdio.h>#include <math.h>double fun(int n){ double t…… 题解列表 2020年09月09日 0 点赞 0 评论 797 浏览 评分:0.0