摘要:1.单链表的创建代码
阅读全文
随笔分类 - 数据结构、算法
摘要: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...
阅读全文
摘要: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;...
阅读全文
|