自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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的增加电脑时区注册表文件

完美解决windows下电脑时区缺失的问题。 -想添加美国西部时区的时间? -但是下拉框里面根本没有? -也不知道在哪里添加? 那么:下载此注册表文件! 里面包含所有的国家时区列表,美国西部时间,日本,韩国,等等100多个国家和地区的时区。。 文件是reg注册表格式的,下载后直接双击即可。 window 7下安装后,可以添加显示多个不同地区的时钟。

2014-03-26

Simple Client-Server Demo 简单的客户端服务器模型

Simple Client-Server Demo 简单的客户端服务器模型 用C语言写的,用套接字建立连接。

2012-05-06

在Linux中实现客户机-服务器通信

在Linux中实现客户机-服务器通信 1.实验目的: 学习套接字(socket)机制的使用,熟悉linux下基本网络编程。 2.实验内容: 用C语言编写一TCP客户机-服务器程序,要求当服务器收到客户机的消息字符串(例如:”hello world”)时,将消息显示在标准输出上。 3.实验提示: 1)运行前首先需要配置网络,配置方法及参数同windows下,配置时先将windows下的本地连接禁用,待Linux下网络配置完成后再启用。 2)有关命令: 假设在当前目录下运行server这个后台程序命令:./server& 假设在当前目录下运行client这个前台程序命令:./client 察看当前进程状态:ps 杀死进程号为xxxx的进程:kill xxxx

2012-05-06

Library Management System

LibraryManagementSystem 能实现基本功能:借书还书,对读者和书进行管理等。 只有一个CPP文件,简单实用。

2012-05-06

图书馆借阅管理系统,简单实用,适合学习VC++

图书馆借阅管理系统,简单实用,适合学习VC++ 包含所有源文件和数据库文件。

2012-05-06

MATLAB应用程序接口用户指南

刘志俭编。科学出版社。 《MATLAB应用程序接口用户指南 》是《MATLAB语言应用系列书》之一。《MATLAB应用程序接口用户指南 》共分八章,其中前七章在对MATLAB进行简要介绍的基础上,详细而系统地介绍了MATLAB应用程序接口的使用,内容包括如何在MATLAB环境下调用现有的用C语言和FORTRAN语言开发的算法;如何完成C语言和FORTRAN语言应用程序与MATLAB间的数据交换;以及如何在C语言和FORTRAN语言的应用程序中调用MATLAB中的各种函数,包括工具箱函数。同时为了方便用户对MATLAB应用程序接口的使用,书中对MATLAB应用程序接口中所提供的接口函数进行了详细说明。《MATLAB应用程序接口用户指南 》第八章在简要分析MATLAB应用程序接口和MATLAB C++数学函数库之间异同的基础上,对MATLAB C++数学函数库进行了简单的介绍,内容包括类mwArray的说明、阵列对象的操作、库函数及运算符的使用和简单的程序设计。 《MATLAB应用程序接口用户指南 》可作为高等学校数学、计算机、电子工程、信息工程、机械工程等专业师生的参考教材,对从事上述领域工作的广大科技工作者和开发应用人员具有重要的参考应用价值。

2011-08-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除