欢迎来到CClarence的博客!!

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

001
摘要: 分别表示从数组头部插入,尾部插入,头部删除(返回被删除元素),尾部删除(返回被删除元素)。 阅读全文
posted @ 2016-04-11 18:22 CClarence 阅读(207) 评论(0) 推荐(0) 编辑
摘要: flex是个非常好用的属性,如果说有什么可以完全代替 float 和 position ,那么肯定是非它莫属了(虽然现在还有很多不支持 flex 的浏览器)。然而在移动开发中,本来绝大多数浏览器(包括安卓2.3以上的自带浏览器)都支持的属性,偏偏有个例外,就是国产某某X5内核神器(不知哪个版本的we 阅读全文
posted @ 2016-03-27 12:09 CClarence 阅读(219) 评论(0) 推荐(0) 编辑
摘要: //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 阅读(168) 评论(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 阅读(1417) 评论(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 阅读(582) 评论(0) 推荐(0) 编辑
摘要: class const_iterator{protected: BinaryNode *current;public: const_iterator():current(NULL) {} const Comparable & operator*() const { ... 阅读全文
posted @ 2016-01-25 17:14 CClarence 阅读(202) 评论(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 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Node* reverseList(Node *first){ Node* currentPos,*nextPos,previousPos; previousPos=NULL; //从第一个数据first开始,前一个是NULL; curren... 阅读全文
posted @ 2016-01-21 14:43 CClarence 阅读(340) 评论(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 阅读(223) 评论(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 阅读(99) 评论(0) 推荐(0) 编辑