01 2010 档案

摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>#include<stdlib.h>#ifdef_DEBUG#defineDEBUG_NEWnew(_NORMAL_BLOCK,THIS_FI... 阅读全文
posted @ 2010-01-12 20:46 wlu 阅读(274) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>usingnamespacestd;classstudent{public:voiddisplay();voidset_id(int_id);voids... 阅读全文
posted @ 2010-01-12 09:53 wlu 阅读(197) 评论(0) 推荐(0) 编辑
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>usingnamespacestd;intmain(){intf=0,i=5,j=5,k;intA[26][26];for(k=1;k<=25;... 阅读全文
posted @ 2010-01-11 21:48 wlu 阅读(309) 评论(0) 推荐(0) 编辑
摘要:《算法导论》2.3-7很值得一练。其中用到了归并排序、二分查找等等:Give a Q(n lg n) time algorithm for determining if there exist two elements in an set S whose sum is exactly some value x.以下是答案,其实想想很简单的。代码如下,以备日后查找:)代码Code highlight... 阅读全文
posted @ 2010-01-04 10:42 wlu 阅读(373) 评论(0) 推荐(0) 编辑