摘要:1.单链表的创建代码
阅读全文
|
03 2010 档案
摘要: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;...
阅读全文
摘要:const char*, char const*, char*const的区别const char*, char const*, char*const的区别问题几乎是C++面试中每次都会有的题目。事实上这个概念谁都有只是三种声明方式非常相似很容易记混。Bjarne在他的The C++ Programming Language里面给出过一个助记的方法: 把一个声明从右向左读。char * const...
阅读全文
|