02 2021 档案

摘要:选择排序C语言实现 int select_sort(int *list, int len) { int i = 0; int j = 0; int tmp = 0; int smallest_loc = 0; if((NULL == list) || (0 == len)) { return 1; 阅读全文
posted @ 2021-02-08 20:10 sinodragon21 阅读(114) 评论(0) 推荐(0) 编辑
摘要:插入排序算法C语言实现 我写出来的排序算法用printf一步步解读,与google algorithm APP上模拟的单步执行不一致。 于是参考了https://www.cnblogs.com/coding-996/p/12275710.html,写出如下代码,经测试,与google algorit 阅读全文
posted @ 2021-02-08 19:01 sinodragon21 阅读(84) 评论(0) 推荐(0) 编辑
摘要:2012年脱离程序员队伍,时隔9年,居然一次性把“冒泡排序”算法写对了 2021年2月7日 立贴纪念 #include<stdio.h> int bubble_sort(int *list, int len) { int i = 0; int j = 0; int tmp = 0; if((NULL 阅读全文
posted @ 2021-02-07 17:10 sinodragon21 阅读(61) 评论(0) 推荐(0) 编辑
摘要:今天在牛客网上做C语言专项练习题,遇到一个“函数传指针类型的形参”的题,我做错了,正确的为下面代码: #include <string.h> #include <stdio.h> #include <stdlib.h> void getmemory(char** p) { *p=(char *) m 阅读全文
posted @ 2021-02-06 16:46 sinodragon21 阅读(164) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示