1. 修改元素值 second_node.set_value("miller");不对 必须second_node.first_child().set_value("miller");2. 小例子#include #include "pugixml.hpp"#include using names....
分类:
其他好文 时间:
2014-09-16 12:17:50
阅读次数:
311
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-09-16 10:24:40
阅读次数:
158
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-09-16 00:15:49
阅读次数:
196
原创文章转载请注明出处:@协思, http://zeeman.cnblogs.com 首先本文的目的不是引发语言之争,纯属个人的一些思绪记录。 因为工作原因,用Node.js做过几个项目,基本都是涉及REST方面的。有一个涉及消息转发的服务,分别部署到6台服务器,目前已经成功处理数亿的消息...
分类:
Web程序 时间:
2014-09-16 00:15:39
阅读次数:
295
bat脚本@echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit :begin node myserver.js:end...
分类:
Web程序 时间:
2014-09-16 00:13:59
阅读次数:
217
1.查找安装包:rpm -ivh iscsi-initiator-utils去sf.net下载iscsitarget包make kernel,usr,install开启服务(0)查看iscsi发现记录 iscsiadm -m node(1)发现iscsi存储:iscsiadm -m discover...
分类:
其他好文 时间:
2014-09-15 22:41:29
阅读次数:
291
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:
其他好文 时间:
2014-09-15 21:09:39
阅读次数:
216
javascript方面:anguarljs方面:backbone方面:nodeJS方面:requireJS方面:CSS方面:
分类:
其他好文 时间:
2014-09-15 19:40:00
阅读次数:
173
先序遍历:
void preOrder(Node *p) //非递归
{
if(!p) return;
stack s;
Node *t;
s.push(p);
while(!s.empty())
{
t=s.top();
printf("%d\n",t->data);
s.pop();
if(t->ri...
分类:
其他好文 时间:
2014-09-15 19:36:09
阅读次数:
152
今天学习angular提到了marka测试驱动开发,就安装了下,结果一直提示命令没找到。如下图:
查找了一些资料,发现marka的资料少的可怜。最后终于发现了问题所在。
原因是:npm没有在/usr/local/bin目录下面创建 Karam目录的软链接导致。因为Karma的实际安装目录可能是在:/usr/local/lib/node_modules/karma...
分类:
其他好文 时间:
2014-09-15 19:32:49
阅读次数:
174