开发工具目录结构--E:\develop\----node-webkit-v0.9.2-win-ia32----Sublime Text 2.0.2 x64为Sublime text2构建Build环境打开sublime text2 菜单->tools->build system->new buil...
分类:
Web程序 时间:
2014-07-16 23:15:30
阅读次数:
1277
学长说现在基本上可以开始学习STL中一些标准模板了,今天先总结一下 队列、栈、优先队列
1、队列(queue)
先进先出原则,头文件#include ,定义结构queue名称;queueq、queueq等;
如:
struct node
{
int x;
}f;
queueq;//结构体类型队列
q.push(f) //将f压入队列的尾部
node t...
分类:
其他好文 时间:
2014-06-28 08:36:49
阅读次数:
162
MHA的主要作用:在mysql的主从复制中,当master崩溃了,利用mha实现backup顶替崩溃的master自动切换为master继续工作,从而实现高可用。下面介绍本次实验的环境:MHA分为manager管理节点和node节点,一般来讲最少是三台服务器,两台node节点,一台manager节点,但本次环境限制..
分类:
数据库 时间:
2014-06-28 00:08:50
阅读次数:
654
#include
#include
#include
#include
using namespace std;
struct Node
{
int data;
struct Node* next;
};
struct Node* create_list(int len)
{
if (len <= 0)
return NULL;
struct Node* head;
...
分类:
其他好文 时间:
2014-06-27 23:54:36
阅读次数:
311
关于nodejs中文站,眼下活跃度最好的知识站应该是http://www.cnodejs.org/ ,而http://cnodejs.org/则活跃度较低。Express.js是nodejs的一个MVC开发框架,而且支持jade等多种模板,是Node.js上最流行的Web开发框架。这几天刚接触Pho...
1.查询数据库是否有等待select * from resource_queues where node_name=(select node_name from nodes order by node_name limit 1) order by queue_entry_timestamp desc...
分类:
数据库 时间:
2014-06-27 12:03:53
阅读次数:
680
Fenix 是提供给开发人员使用的简单的一个 Web 服务器,
是基于 Node.js 开发。可以同时在上面运行很多的项目,
最适合前端开发人员使用...
分类:
Web程序 时间:
2014-06-27 09:31:18
阅读次数:
191
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key....
分类:
其他好文 时间:
2014-06-27 09:15:12
阅读次数:
196
题意:N,T,S,E:给你T条边,每条边两端都有编号和权值,问从S走到E允许走N条边,求最短路。
foyld加矩阵快速幂思想。
注意要把边离散
#include
#include
#include
#include
using namespace std;
#define M 303
#define inf 0x3fffffff
struct node
{
...
分类:
其他好文 时间:
2014-06-27 07:39:23
阅读次数:
178
在近期Google的AngularJS会议上,Synth浮出水面,它是一套基于Node.js构建的API优先的Web应用框架。
自Synth被披露以来,在一个半月的时间里,其GitHub项目从1星增长到了超过500星。但Synth的创造者Jon Abrams表示,更广泛的开发者社区依旧对该框架感到迷茫。
Jon Abrams表示,Synth项目不同于传统Node.js Web框架。它的...