`
宫庆义
  • 浏览: 16633 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
用Extjs做项目,用到htmleditor控件,唯一的缺陷是不可以上传图片,为了以后方便,在基于htmleditor控件上写了一个支持上传图片的。 控件StarHtmleditor /** * 重载EXTJS-HTML编辑器 * * @class HTMLEditor * @extends Ext.form.HtmlEditor * @author wuliangbo */ HTMLEditor = Ext.extend(Ext.form.HtmlEditor, {     addImage : function() {         var editor = this; ...
1.Include Dependencies: <script type="text/javascript" charset="utf-8" src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"> </script> 2.The YUI Instance: YUI().use('node', function(Y) { // Node available, and ready for use. ...
GOF的定义: 命令模式(别名:动作,事物) 将一个请求封装成一个对象,从而使用户可以用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤销操作. 在许多设计中, 经常涉及到一个对象请求另一个对象调用其方 ...
#include "Common.h" #include "DCirList.h" #pragma once #pragma region //二叉树类 //测试日期 2010-3-13 #ifndef BINTREENODE_H #define BINTREENODE_H template<class T> class BinTreeNode { public: BinTreeNode<T>* leftchild; BinTreeNode<T> ...
#ifndef HEAP #define HEAP template<class T> class Heap { private: T *data; int size; int maxSize; void Sink(int start,int m); //从start到m下滑调整成最小堆 void Raise(int start); //从start到0上滑调整成最小堆 public: Heap(){data=new T[100]; maxSize=100; size=0;} Heap(int _m ...
#include "DCirList.h" #pragma once #pragma region //树类 //测试日期 2010-3-11 #ifndef TREENODE_H #define TREENODE_H template<class T> class TreeNode { public: TreeNode<T>* firstchild; //第一个孩子结点指针 TreeNode<T>* nextsibling; ...
/********************************************************************************/ /* 计算器程序 */ /* */ /* 2010-3-8 ...
    回溯法也称试探法,这种方法将问题的候选解按某种顺序逐一枚举和检验, 当发现当前的候选解, 不是解时, 就放弃它而选择下一个候选解, 如果当前的候选解, 除了不满足问题规模要求外, 其他所有要求都已满足, 则扩大当前候选解的规模, 继续试探. 如果当前候选解满足了包括问题在内的所有要求, 则这个候选解, 将成为问题的一个解. #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; ...
#include "DCirList.h" template<class T> void Josephus(DCirList<T>& js,int n,int m) { DCirNode<T> *p=js.GetItem(0), *pre=NULL; for(int i=0;i<n-1;i++) { for(int j=1;j<m;j++) { pre=p; p=p->next; if(p==js.GetItem(-1)) p=p-&g ...
#include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; #pragma once void Error(string error) { cout<<error<<endl; system("pause"); exit(1); } ...
图1 双向循环链表 #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; #pragma once void Error(string error) { cout<<error<<endl; system("pause"); ...
图1  链表示意图 图2  链表元素的添加 图3  链表元素的删除 带附加头结点的单链表类. 同时具有栈, 队列, 双端队列的功能 #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; #pragma once void Error(string error) { cout<<error<<endl; sy ...
Global site tag (gtag.js) - Google Analytics