- 博客(24)
- 资源 (6)
- 收藏
- 关注
原创 Installshield-limited-edition Relative Path
如何改Installshield-limited-edition的相对路径,参考:http://dynamicsdev.wordpress.com/2013/02/14/installshield-limited-edition-tips/http://shieldmaster.wordpress.com/2007/06/21/path-variables-and-projec
2013-10-22 08:43:52
962
原创 Palindrome Partitioning in Java
Palindrome Partitioning: Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "a
2013-08-29 12:40:55
469
原创 PIE Chapter 7 -- Recursion递归- Java
【程序员面试攻略】一书中的第七章代码:public class Ch7{ /* * factorial: recursively */ public int fac(int n) { if(n == 1) return 1; else return n*fac(n-1); } /* * factorial: iteratively */ pub
2013-08-04 08:02:58
490
原创 PIE Chapter 6--Java代码
【程序员面试攻略】一书中的第六章代码:import java.util.Hashtable;import java.lang.StringBuffer;public class Ch6 { /* * find the first non-repeated character in one string * Input: one string * Output:
2013-08-04 07:58:53
569
转载 【转】位图法应用
编程珠玑中第一章中所提到的位图问题。下面的文章是俺在 这里 看到的啦。一、给40亿个不重复的unsigned int的整数,没排过序的,然后再给一个数,如何快速判断这个数是否在那40亿个数当中申请512M的内存 一个bit位代表一个unsigned int值 读入40亿个数,设置相应的bit位 读入要查询的数,查看相应bit位是否为1,为1表示存在,为0表示不存在二、使
2013-07-28 08:57:40
452
原创 A easy way to use C# to Parse a URL
I find it from here, and it is a good solution. using System;using System.Web; //need to change the property of the project target framework into 4, not clientusing System.Collections.Speciali
2013-06-29 08:39:22
751
原创 xml files merger
写了一个小程序来任意选取电脑中的多个xml files, 然后合并存为一个xml file.using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Xml;using System.IO;na
2013-06-26 02:31:05
465
原创 All about Loop back Adapter
Microsoft Loop back Adapter (微软回环网卡)类似一个虚拟网卡,能够被安装在一个没有网卡或者要用于测试多个宿主环境的Windows 上。1. 首先在上主机添加一块虚拟网卡单击开始图标,在智能搜索中输入“hdwwiz”,在搜索结果中鼠标右键单击该程序,使用“以管理员身份运行”方式来启动; 根据操作系统向导,选择“安装我手动从列表选择的硬件(高级)”在
2013-06-25 08:51:53
686
原创 InstallShield利用环境变量得到INSTALLDIR,结合custom action来实现完全卸载
InstallShield 2012 LE版本中,1. 自己定义了一个环境变量,叫做mypath,2. 在custom action中,添加一个action,使用下面的代码来删除子文件夹和文件。removeNewFunction removeNew() Set WshShell = CreateObject("WScript.Shell") Dim strFolder, in
2013-06-22 03:09:13
1759
转载 VBScript删除子文件夹和文件的程序,自己定义删多深
'VBScript删除子文件夹和文件的程序,可以自己定义删多深。采用的recursively删除,免除打开子文件后报错。'http://www.theswamp.org/index.php?topic=26167.0Function deletefilesandfolders (foldername, deep) dim fso,fldr set fso = createobject("s
2013-06-22 03:02:50
786
原创 vbscript删除母文件夹
如果需要检查母文件夹是否为空,空则删除的话,VBS代码如下:Dim fso, Folder2Delete, FolderPath, parentFolderFolderPath = "C:\Program Files (x86)\My App\1"MsgBox FolderPathSet fso = CreateObject("Scripting.FileSystemObject")
2013-06-21 05:43:56
832
原创 InstallShield 2012 升级程序制作时的product code 和upgrade code
For differentproducts: Eg. CATS 5 and CATS 6 are different products, because you want them to co-exist in one computer, and be able to upgrade them seperately.The difference will be: 1.
2013-06-21 05:06:01
2796
原创 InstallShiled 2012完全卸载-删除文件夹和子文件夹和文件
用的InstallShiled 2012 LE版,很多功能都不全。为了卸载时能够删掉运行时产生的一些文件。所需步骤:1. Environment Varaiables加入mypath2. custom actions加入以下vbs.Function removeNew()Set WshShell = CreateObject("WScript.Shell")Dim fso,
2013-06-21 05:04:00
1019
转载 类的设计原则【转】
开闭原则Software entities (classes, modules, function, etc.) should be open for extension, but closed for modification.软件实体(模块,类,方法等)应该对扩展开放,对修改关闭。开闭原则(OCP:Open-Closed Principle)是指在进行面向对象设计(OOD:Obje
2013-06-14 10:10:25
385
转载 类的设计方法【转】
1) 类名首字母应该大写。字段、方法以及对象(句柄)的首字母应小写。对于所有标识符,其中包含的所有单词都应紧靠在一起,而且大写中间单词的首字母。例如: ThisIsAClassName thisIsMethodOrFieldName 若在定义中出现了常数初始化字符,则大写static final基本类型标识符中的所有字母。这样便可标志出它们属于编译期的常数。 Java包(Packa
2013-06-14 10:09:24
418
原创 Binary Search Tree--find Lowest Common Ancestor--C++ and Java
Question is fromhere.Given a binary search tree (BST), find the lowest common ancestor of two given nodes in the BST. _______6______ / \ ___2__ ___8__
2013-06-09 09:30:31
600
原创 [study] BinarySearchTree class in Java
// BinarySearchTree class//// CONSTRUCTION: with no initializer//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// void remove( x ) --> Re
2013-06-09 05:17:17
577
1
原创 BST_Recursive class in Java---第一遍实现
public class BST_Recursive { private Node m_root; ///Binary Search Tree Find Recursive Solution public Node findNode(int value){ return findHelper(m_root, value); } private Node findHelper
2013-06-01 11:43:28
576
1
原创 BST_Iterative class in Java
public class BST_Iterative { private Node m_root; ///Binary Search Tree Find Iterative Solution public Node findNode(int value){ Node cur = m_root; while( cur != null){ int currval = cur
2013-06-01 11:42:49
432
原创 Tree Node in Java
public class Node { private Node left; private Node right; private int value; public Node ( int value, Node left, Node right){ this.left = left; this.right = right; this.value = value;
2013-06-01 11:41:57
545
1
原创 Stack Implementation in C++
//Simple implementation#define STACK_CAPACITY 1000typedef char el_t; // defines the element type el_t to be char for nowclass Stack{private: // Private data members are: el_t el[STACK_CAPAC
2013-05-31 09:54:42
467
原创 Binary Search Tree (BST) Implementation C++
//Implement the BST data structure, and the related traverse, insert, delete operations.#include using namespace std;//note: NULL must be upper casetypedef int elem_t; //elem_t is hidden from
2013-05-31 09:06:57
868
原创 Binary Search Tree Analysis based on Wikipedia
Read more from wikipedia: http://en.wikipedia.org/wiki/Binary_search_tree 1. what is it? a node-based binary tree data structure which has the following properties:The left subtree of
2013-05-31 04:21:55
699
原创 Convert Binary Search Tree (BST) to Sorted Doubly-Linked List
关于BST: http://en.wikipedia.org/wiki/Binary_search_tree此题有待研究:http://leetcode.com/2010/11/convert-binary-search-tree-bst-to.html http://codercareer.blogspot.com/2011/09/interview-question-no-
2013-05-28 14:02:27
930
完美解决-windows的增加电脑时区注册表文件
2014-03-26
Simple Client-Server Demo 简单的客户端服务器模型
2012-05-06
在Linux中实现客户机-服务器通信
2012-05-06
Library Management System
2012-05-06
MATLAB应用程序接口用户指南
2011-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人