package com.shiyeqiang.tree;
import java.util.Stack;
public class BiTree {
public static void main(String[] args) {
// 首先构造叶子节点
BiTree leafA1 = new BiTree(4);
BiTree leafA2 = new BiTree(5);...
分类:
其他好文 时间:
2014-06-04 13:54:31
阅读次数:
374
特殊工具与技术--优化内存分配[续1]三、operator new函数和operator delete 函数– 分配但不初始化内存 首先,需要对new和delete表达式怎样工作有更多的理解。当使用new表达式 string *sp = new string("initialized");
的时候,实际上发生三个步骤: 1)首先,表达式调用名为operatornew 的标准库函数,分配足够大...
分类:
编程语言 时间:
2014-06-04 13:42:19
阅读次数:
453
install Eclipse & Python(pydev) in mac
install django in mac
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz
$ cd virtualenv-1.10.1/
$ sudo py...
分类:
其他好文 时间:
2014-06-04 13:05:05
阅读次数:
298
STL的map表里有一个erase方法用来从一个map中删除掉指令的节点eg:map
mapTest;typedef map::iterator ITER;ITER
iter=mapTest.find(key);mapTest.erase(iter);像上面这样只是删除单个节点,map的形为不会出现...
分类:
其他好文 时间:
2014-06-03 16:11:29
阅读次数:
239
点击排序列,将获取参数有:page=1&rows=10&sort=UserName&order=descc#后台获取sort跟order参数string
sortColumn = Request.Params["sort"].ToString(); string ord...
分类:
Web程序 时间:
2014-06-03 15:39:25
阅读次数:
369
1 string[] arr=Regex.Split(strValue, @"\s+") View
Code分隔带空格的字符串 去掉空格 字符串数组
分类:
其他好文 时间:
2014-06-03 15:25:48
阅读次数:
274
透明色:00ff00ff //设置柱状图的颜色 ColorSet cs = new
ColorSet(); cs.Id = "colorset1";#region 设置柱状图的颜色 待开发 string strColor =
oYAXIS.Color; switch (strColor) { cas...
分类:
Web程序 时间:
2014-06-03 15:21:24
阅读次数:
337
#include #include #include #include #include
#include #include using namespace std;bool pre_arry[1100];void pre_cnt() //素数筛{
memset(pre_arry,1,sizeof....
分类:
其他好文 时间:
2014-06-03 14:57:38
阅读次数:
259
/*通过直接预分区的方式建表*/private static void
printTableRegion(String tableName)throws IOException{ System.out.println("Prtint
region of table:"+tableName);/...
分类:
其他好文 时间:
2014-06-03 14:51:05
阅读次数:
207
public class Money { /// /// 要转换的数字 /// private
double j; private string m_pb; /// /// ...
分类:
其他好文 时间:
2014-06-03 14:37:26
阅读次数:
436