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...
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>usingnamespacestd;classstudent{public:voiddisplay();voidset_id(int_id);voids...
阅读全文
摘要:代码 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;...
阅读全文
摘要:《算法导论》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...
阅读全文