2010年12月12日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> void swap( int * p1, int ...
阅读全文
posted @ 2010-12-12 15:24
别人叫我军师
阅读(1103)
推荐(0)
2010年12月8日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ voi...
阅读全文
posted @ 2010-12-08 22:27
别人叫我军师
阅读(916)
推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ ...
阅读全文
posted @ 2010-12-08 21:48
别人叫我军师
阅读(3848)
推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ int...
阅读全文
posted @ 2010-12-08 21:18
别人叫我军师
阅读(657)
推荐(0)
2010年12月5日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ int...
阅读全文
posted @ 2010-12-05 10:33
别人叫我军师
阅读(876)
推荐(0)
2010年12月3日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ int...
阅读全文
posted @ 2010-12-03 10:07
别人叫我军师
阅读(4303)
推荐(0)
2010年11月30日
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include #define M 100 ...
阅读全文
posted @ 2010-11-30 20:49
别人叫我军师
阅读(822)
推荐(0)
摘要:
思想:首先是将第1个数和第2个数进行比较,若为逆序(R[1]>R[2]),则交换这两个数的位置,然后比较第2个数和第3数,以此类推,直至第n-1个数和第n个数进行比较为止.这个过程称为第一趟冒泡排序,排序结果是最大的数被排在了最后。即R[n]. 接着进行第二趟冒泡排序,即对前n-1个数再次进行两...
阅读全文
posted @ 2010-11-30 12:13
别人叫我军师
阅读(465)
推荐(2)
摘要:
直接插入排序 希尔排序 选择排序 冒泡排序
阅读全文
posted @ 2010-11-30 11:57
别人叫我军师
阅读(195)
推荐(0)
摘要:
猴子吃桃问题。猴子第一天摘下若干个桃子,当即吃了一半,还不瘾,又多吃了一个第二天早上又将剩下的桃子吃掉一半,又多吃了一个。以后每天早上都吃了前一天剩下的一半零一个。到第10天早上想再吃时,见只剩下一个桃子了。求第一天共摘了多少。 Code highlighting produce...
阅读全文
posted @ 2010-11-30 10:58
别人叫我军师
阅读(2004)
推荐(0)