归并排序(模板)(yxcnb) 摘要:#include <iostream>using namespace std;const int N =1e5+10;int k[N],t[N];int n;void m_sort(int k[],i…… 文章列表 2022年12月27日 0 点赞 0 评论 112 浏览 评分:9.9
数据结构:顺序表实现——静态分配 摘要:##顺序表实现——静态分配 ###静态分配 假定线性表的元素类型为elemtype,下来让我们用静态分配的方式来敲出一个顺序表吧! ``` #include #define maxsize …… 文章列表 2022年12月29日 0 点赞 0 评论 163 浏览 评分:9.9
数据结构:顺序表实现——动态分配 摘要:##顺序表实现——动态分配 ###动态分配 假定线性表的元素类型为elemtype,下来让我们用动态分配的方式来敲出一个顺序表吧! ``` #include #include …… 文章列表 2022年12月30日 0 点赞 0 评论 220 浏览 评分:9.9
数据结构:顺序表的基本操作——插入和删除 摘要:##数据结构:顺序表的基本操作——插入 ```c #include #define maxsize 10 //定义一个顺序表 typedef struct{ int data[maxs…… 文章列表 2022年12月30日 0 点赞 0 评论 139 浏览 评分:9.9
高精度减法,两正数相减,结果可能为负数 摘要:``` #include #include #include using namespace std; const int N=1e5+10; int a[N],b[N],sum[N…… 文章列表 2022年12月30日 0 点赞 0 评论 153 浏览 评分:9.9
快速排序(模板)(yxcnb) 摘要:``` #include using namespace std; const int N=1e6+10; int n; int k[N]; void quick_sort(int k[…… 文章列表 2022年12月30日 0 点赞 0 评论 174 浏览 评分:9.9
数据结构:顺序表的综合应用题 摘要:##数据结构:顺序表的综合应用题 ####01.从顺序表中删除具有最小值的元素(假设唯一)并由函数返回被删元素的值。空出的位置由最后一个元素填补,若顺序表为空,则显示出错信息并退出运行。 ####…… 文章列表 2022年12月30日 0 点赞 0 评论 203 浏览 评分:9.9
蓝桥杯练习2 摘要:##蓝桥杯练习2  ``` #include int main() { …… 文章列表 2023年01月03日 0 点赞 0 评论 198 浏览 评分:9.9
C++编写通讯录(简单解法但有一定缺陷) 摘要:#include<iostream> #include<string> using namespace std; struct One{ char name[10]; int age; …… 文章列表 2023年01月04日 0 点赞 0 评论 121 浏览 评分:9.9
蓝桥杯练习3 摘要:##蓝桥杯练习3  ``` #include int main() {…… 文章列表 2023年01月05日 0 点赞 0 评论 199 浏览 评分:9.9