过河的小兵

不积跬步,无以至千里;不积小流,无以成江海.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  数据结构、算法

摘要:1.单链表的创建代码 阅读全文
posted @ 2010-03-29 23:04 过河的小兵 阅读(214) 评论(0) 推荐(0)

摘要:1. strcpy代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1char*strcpy(char*strDest,constchar*strSrc);2{3assert((strDest!=NULL)&&(strSrc!=NUL... 阅读全文
posted @ 2010-03-26 15:29 过河的小兵 阅读(171) 评论(0) 推荐(0)

摘要:1.冒泡排序代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1voidBubbleSort(intarr[],intlen)2{3for(intpass=1;pass<len;pass++)//一共比较len-1轮4{5for(inti=0;... 阅读全文
posted @ 2010-03-26 15:04 过河的小兵 阅读(259) 评论(0) 推荐(0)