![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
文章平均质量分 55
.gitignore
事虽难,做则必成!我天赋不高,性格散漫,故而经常懈怠!然则人生路漫漫,总要经常提醒自己:要努力,要奋斗,普通人的生活要靠自己创造!
展开
-
二分查找 C语言
运行结果如图:原创 2016-04-05 21:17:41 · 228 阅读 · 0 评论 -
顺序查找 C语言
顺序查找 C语言转载 2016-04-05 21:22:24 · 776 阅读 · 0 评论 -
选择排序
选择排序的基本思想是:from those integers that are currently unsorted,find the smllest and replace it next in the sorted list.源代码:#include #include #define MAX_SIZE 101#define SWAP(x,y,t) ((t)=(x),(x)=(y)转载 2016-04-06 16:56:48 · 195 阅读 · 0 评论 -
二分查找
#include #include #define MAX_SIZE 10#define COMPARE(x,y) (((x)<(y))?-1:((x)==(y))?0:1)int binsearch(int list[],int searchnum,int left,int right);void printArray(int list[],int arraySize);int ma转载 2016-04-06 17:37:53 · 201 阅读 · 0 评论 -
趣味魔方 每行每列对角线的和相等 C语言
Coxeter提出生成奇数阶魔方的方法:开始时,在魔方第一行的中间一格放1,然后重复以下步骤:移动到左上一格,把当前的数加1放在这个位置上。如果移动时超出魔方范围,则想象与当前状态完全相同的另一个魔方,(对齐)紧靠在超出的那条边界线上,因而可以继续。如果移动的格子已经放了数字,则从这个位置向正下方移动一格。直到把所有格子填满。程序代码:#include #include翻译 2016-04-08 18:26:26 · 3916 阅读 · 0 评论 -
Process terminated with status 255 错误,首先检查错误
网上解决方法多是:https://community.linuxmint.com/tutorial/view/1597但是实际情况却是http://tieba.baidu.com/p/2399514771,后来看到这,http://zhidao.baidu.com/question/491458640.html,不屑一顾,心想我怎么能写错,更何况是抄的。。。原创 2016-09-29 19:06:04 · 8278 阅读 · 0 评论