江军峰
码龄6年
关注
提问 私信
  • 博客:28,263
    28,263
    总访问量
  • 81
    原创
  • 2,035,343
    排名
  • 634
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:台湾省
  • 加入CSDN时间: 2019-05-10
博客简介:

jiangjun_feng的博客

查看详细资料
个人成就
  • 获得19次点赞
  • 内容获得24次评论
  • 获得137次收藏
  • 代码片获得143次分享
创作历程
  • 36篇
    2021年
  • 45篇
    2020年
成就勋章
TA的专栏
  • mybatis
    8篇
  • spring
    9篇
  • redis
    2篇
  • ajax_and_json
    2篇
  • Jquery
    3篇
  • 设计模式
    1篇
  • XML
    1篇
  • Servlet
    4篇
  • JavaScript
    6篇
  • html
    1篇
  • JDBC
    8篇
  • 排序
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

180人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

C语言 散列表 分离链接法

运行结果正确怎么说呢,散列表最重要的还是怎么设计散列函数,解决冲突还是很简单的完整代码#include<stdio.h>#include<malloc.h>#include<stdlib.h> //定义链表 typedef struct list_node *list_point ; struct list_node{ int val; list_point next; }; //定义散列表 typedef struct table_nod
原创
发布博客 2021.06.03 ·
355 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

C语言 桶排序

运行结果正确完整代码#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>void simple_bucket_sort(int arr[],int n,int max);void tra_arr(int arr[],int n);int main(){ int arr[10]={ 10,9,9,9,5,5,5,1,1,1 }; simple
原创
发布博客 2021.06.02 ·
247 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

C语言 基数排序.zip

发布资源 2021.06.02 ·
zip

C语言 基数排序

运行结果正确完整代码(审核中)主要代码#include"队列声明.h"void tra_arr(int arr[],int n);void get_pos_value(int in,int pos,int &result);void base_sort(int arr[],int n,int pos_num);int main(){ int arr[10]={ 999,888,777,66,55,44,3,2,1,33 }; base_sort(arr,10,3);
原创
发布博客 2021.06.02 ·
281 阅读 ·
0 点赞 ·
1 评论 ·
1 收藏

C语言 所有排序方法的实现

运行结果正确还是快速排序难一些。完整代码#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>void swap(int *a,int *b);void select_sort(int arr[],int n);void tra_arr(int arr[],int n);void insert_sort(int arr[],int n); voi
原创
发布博客 2021.05.30 ·
726 阅读 ·
7 点赞 ·
10 评论 ·
39 收藏

关键路径计算 C语言 邻接表实现.zip

发布资源 2021.05.28 ·
zip

C语言 关键路径计算

运行结果正确完整代码还在审核主要代码#include"邻接表声明.h"#include"队列声明.h"#include"栈的声明.h"//统计入度void count_degree(adj_g_point g,int degree[]){ //初始化数组 for(int i=0;i<g->v_num;i++){ degree[i]=0; } //开始统计 adj_e_point e; int j; for(int i=0;i<g->v_num;i
原创
发布博客 2021.05.28 ·
423 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

拓扑排序 邻接表实现.zip

发布资源 2021.05.27 ·
zip

C语言 拓扑排序 邻接表实现

运行结果正确完整代码 还在审核主要代码#include"邻接表声明.h"#include"队列声明.h"//拓扑排序void top_sort(adj_g_point g,int result[]){ //首先找一个数组把入度存一下 int *in_degree=(int*)malloc((g->v_num)*sizeof(int)); //初始化这个入度表 for(int i=0;i<g->v_num;i++){ in_degree[i]=0;
原创
发布博客 2021.05.27 ·
461 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

最小生成树 图论 C语言 prim

发布资源 2021.05.26 ·
zip

C语言 最小生成树 prim算法

运行结果正确主程序#include"矩阵声明.h"#include"邻接表声明.h"//在没访问过的顶点中找到与当前树距离最近的顶点void find_min(mat_g_point g,int dist[],int &min_id){ //首先给一个最大值去比较 int min=1000; //对每个顶点进行遍历 for(int i=0;i<g->nv;i++){ //如果没访问过,且权值比当前还要小 if(dist[i]!=0&&dist[
原创
发布博客 2021.05.26 ·
386 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C语言 多源最短路径 邻接矩阵

运行结果正确输出路径顶点竟然花了我最多的时间。。。。。。#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//邻接矩阵表示图typedef struct g_node *g_point;struct g_node{ int ne;//边数 int nv;//节点数 int arr[100][100]; int data[100];};
原创
发布博客 2021.05.18 ·
308 阅读 ·
1 点赞 ·
0 评论 ·
3 收藏

C语言 单源最短路径 有权 邻接矩阵

运行结果正确注意初始化的时候对path的特殊处理#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//邻接矩阵表示图typedef struct g_node *g_point;struct g_node{ int ne;//边数 int nv;//节点数 int arr[100][100]; int data[100];};//边
原创
发布博客 2021.05.18 ·
367 阅读 ·
0 点赞 ·
0 评论 ·
5 收藏

C语言 完全二叉搜索树

运行结果正确其实计算树高那个地方我不是很懂为什么要/log(2)。#include <stdio.h>#include <stdlib.h>#include <math.h>//求左子树的节点数void left_tree_total(int n,int &total){ //首先,算一下完美二叉树的树高 int h=(int)floor(log(n+1)/log(2)); //计算完全二叉树的最后一层的叶子节点数 int x=n-pow(
原创
发布博客 2021.05.17 ·
317 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

C语言 前序和中序遍历确定后序遍历

运行结果正确还是很讨厌递归#include <stdio.h>#include <stdlib.h>int pre[100];//先序遍历数组 int in[100];//中序遍历 数组 int post[100]={0};//后序遍历数组 //后序遍历结果void tra_post(int total){ for(int i=0;i<total;i++){ printf("%d ",post[i]); } printf("
");} //由先
原创
发布博客 2021.05.16 ·
1061 阅读 ·
2 点赞 ·
0 评论 ·
4 收藏

C语言 深度优先搜索 非递归

运行结果正确注意,实际上栈里面存的是经过的节点#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//创建邻接表//这个边的数据结构是用来给我们输入使用的typedef struct se_node *se_point;struct se_node{ int v1,v2; int weight;} ;//创建邻接表的边 typedef s
原创
发布博客 2021.05.16 ·
661 阅读 ·
3 点赞 ·
0 评论 ·
12 收藏

C语言 邻接表 广度优先搜索 非递归

运行结果正确非递归虽然实现起来比较复杂,但是容易纠错,也更好理解#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//创建邻接表//这个边的数据结构是用来给我们输入使用的typedef struct se_node *se_point;struct se_node{ int v1,v2; int weight;} ;//创建邻接表的边
原创
发布博客 2021.05.15 ·
548 阅读 ·
2 点赞 ·
0 评论 ·
6 收藏

C语言 邻接表表示无向图

运行结果正确用邻接表来表示图要创造的结构体太多了,我感觉其实有更简单的结构体来表示图。#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//创建邻接表//这个边的数据结构是用来给我们输入使用的typedef struct se_node *se_point;struct se_node{ int v1,v2; int weight;} ;
原创
发布博客 2021.05.15 ·
1105 阅读 ·
1 点赞 ·
0 评论 ·
7 收藏

C语言 邻接矩阵表示无向图

运行结果正确#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//邻接矩阵表示图typedef struct g_node *g_point;struct g_node{ int ne;//边数 int nv;//节点数 int arr[100][100]; int data[100];};//边的数据结构typedef struc
原创
发布博客 2021.05.15 ·
757 阅读 ·
1 点赞 ·
1 评论 ·
2 收藏

c语言 集合 按秩归并 压缩路径

运行结果正确感觉比二叉树还简单#include<stdio.h>#include <stdlib.h>#include <string.h>#include<malloc.h>//先定义一个栈 typedef struct Stack{ int base[100]; int top; }stack,*stack_point; //初始化一个集合的数组,数组的下标就是集合的元素,数组的值就是这个元素的父节点 void
原创
发布博客 2021.05.13 ·
150 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多