过河的小兵

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

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  20 随笔 :: 0 文章 :: 2 评论 :: 28405 阅读

03 2010 档案

摘要:1.单链表的创建代码 阅读全文
posted @ 2010-03-29 23:04 过河的小兵 阅读(204) 评论(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 过河的小兵 阅读(166) 评论(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 过河的小兵 阅读(253) 评论(0) 推荐(0) 编辑

摘要:const char*, char const*, char*const的区别const char*, char const*, char*const的区别问题几乎是C++面试中每次都会有的题目。事实上这个概念谁都有只是三种声明方式非常相似很容易记混。Bjarne在他的The C++ Programming Language里面给出过一个助记的方法: 把一个声明从右向左读。char * const... 阅读全文
posted @ 2010-03-12 09:55 过河的小兵 阅读(294) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示