欢迎来到CClarence的博客!!

敲代码真的是一件令人感到上瘾的事情,在我二十多年的生活中,除了打DoTa,好像没有其他的另一件事也能让我如此乐此不疲。而前端恰恰是编程与界面的最前沿,它能让快速的让你感受到自己的成果,这是一件多么令人兴奋的事啊!!我希望在两年后我毕业的时候我能真的成为一位前端码农,在五年后我能成为一位NB的前端码农!!
----------CClarence写于2015年入冬。

001

01 2016 档案

摘要://all these functions use type node,which is same as the BinaryNodeint countNode(Node *t){ if(t==NULL) return 0; return 1+countNode(t->le... 阅读全文
posted @ 2016-01-26 10:47 CClarence 阅读(175) 评论(0) 推荐(0)
摘要:Tree *Delete(Tree *T,int n){ //将树中指定节点删除的函数 Tree *tmp; if(T==NULL) return NULL; if(T->element==n) { if(T->right==NULL) ... 阅读全文
posted @ 2016-01-26 09:39 CClarence 阅读(1492) 评论(0) 推荐(0)
摘要:#include #include #include #define MAXNODE 100struct TreeNode{ int element,height; struct TreeNode *left; struct TreeNode *right;};int node[M... 阅读全文
posted @ 2016-01-25 22:54 CClarence 阅读(604) 评论(0) 推荐(0)
摘要:class const_iterator{protected: BinaryNode *current;public: const_iterator():current(NULL) {} const Comparable & operator*() const { ... 阅读全文
posted @ 2016-01-25 17:14 CClarence 阅读(212) 评论(0) 推荐(0)
摘要:map > cAW(const vector &words ){ map > adjWords;//要选的map map > wordsByLength;//相同个数的单词组 //分组以每个单词的个数为标准 for(int i=0;i >::const_iterator it... 阅读全文
posted @ 2016-01-25 11:42 CClarence 阅读(349) 评论(0) 推荐(0)
摘要:Node* reverseList(Node *first){ Node* currentPos,*nextPos,previousPos; previousPos=NULL; //从第一个数据first开始,前一个是NULL; curren... 阅读全文
posted @ 2016-01-21 14:43 CClarence 阅读(351) 评论(0) 推荐(0)
摘要:Object objects[theCapacity];iterator insert(int pos,const Object& x){ Object* oldArray=objects; theSize++; int i=0; if(theCapacity<theS... 阅读全文
posted @ 2016-01-20 22:35 CClarence 阅读(229) 评论(0) 推荐(0)
摘要:我的解法:#include #include using namespace std;int main(){ int i,j,n,m,mPrime,numLeft; list L; list::iterator iter; //初始化 cout>n>>m; num... 阅读全文
posted @ 2016-01-20 18:37 CClarence 阅读(102) 评论(0) 推荐(0)
摘要:这个是很容易乱,但只要记住一句话:如果是person类型的数组,则数组类型就是person*类型;那么数组是person指针类型或者说person*,那么他的地址就只能是person**类型了。void bsort{person**,int};person* persPtr[100]; 阅读全文
posted @ 2016-01-05 20:19 CClarence 阅读(132) 评论(0) 推荐(0)