一、实现的效果图二、主要代码html代码 Jquery代码 var html = ['不选父级模块']; var data = eval(json.msg); var levelStr; fo...
分类:
Web程序 时间:
2014-08-19 20:27:15
阅读次数:
159
WEB技术HTMLXHTML?HTML 5?CSS?TCP/IPXMLXML?XSL?XSLT?XSL-FO?XPath?XPointer?XLink?DTD?XML Schema?DOM?XForms?SOAP?WSDL?RDF?RSS?WAP?Web ServicesWeb脚本JavaScrip...
分类:
其他好文 时间:
2014-08-19 10:31:23
阅读次数:
338
#include #include int dp[60001];void f(int maxv,int n,int c[ ],int v[ ])//最大可能价值、 物品种类、物品数量、物品价值 { int i,j,k,t; memset(dp,0,sizeof(dp)); dp[0] = 1; fo...
分类:
其他好文 时间:
2014-08-18 12:26:34
阅读次数:
193
前几天写类linux文件系统的时候,被这个搞死了,今天终于弄懂了
这是cpp文件
#include
#include
#include
#include
using namespace std;
char ch[250];
struct s{
short a, b;
};
int main(){
FILE *file = fo...
分类:
其他好文 时间:
2014-08-18 10:53:04
阅读次数:
395
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-08-16 22:21:41
阅读次数:
235
Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Fo...
递归回溯 由于回溯法是对解空间的深度优先搜索,因此在一般情况下可用递归函数来实现回溯法如下:t表示递归深度,即当前扩展节点在解空间树的深度。n用来控制递归深度。当t>n时表示算法搜索到叶节点。void backtrack( int t ){ if ( t>n ) output(x); else fo...
分类:
其他好文 时间:
2014-08-14 23:42:46
阅读次数:
275
HTTP状态码HTTP持久 · 压缩 · 安全头字段ETag · Cookie · Referrer · Location · Do Not Track · X-Forwarded-ForHTTP状态码301 Moved permanently302 Found303 See Other403 Fo...
分类:
其他好文 时间:
2014-08-14 23:07:36
阅读次数:
344
List去除重复List ls = new ArrayList();ls.add("a");ls.add("b");ls.add("c");ls.add("a");ls.add("a");HashSet hs = new HashSet(ls);ls.clear();ls.addAll(hs);fo...
分类:
其他好文 时间:
2014-08-14 16:35:58
阅读次数:
115
在窗体上拖一个ContextMenuStrip控件,然后private void notifyIcon1_MouseClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Fo...
分类:
其他好文 时间:
2014-08-14 13:13:48
阅读次数:
208