今天学习了node.js ,来看一下hello world 的写法。1. 首先安装node.js的驱动文件。 http://nodejs.org/2. a:安装好node之后,在CMD窗口输入node,再输入console.log('hello world.');3.调用文本文件。sample: 创...
分类:
Web程序 时间:
2014-06-27 18:29:12
阅读次数:
203
Description输入一个无向图G,计算G的连通分支数。Input有多个无向图数据。每个无向描述的第1行是两个整数n和e,分别表示顶点数和边数。接着有e行,每行有2个整数a、b,分别是一条边的两个端点(起点和终点)。两个图之间空一行。Output对每个无向图,输出图中连通分支个数。Sample ...
分类:
其他好文 时间:
2014-06-26 14:53:16
阅读次数:
328
Description
在N×N的棋盘里面放K个国王,使他们互不攻击,共有多少种摆放方案。国王能攻击到它上下左右,以及左上左下右上右下八个方向上附近的各一个格子,共8个格子。
Input
只有一行,包含两个数N,K ( 1
Output
方案数。
Sample Input
3 2
Sample Output
16
HINT
Sou...
分类:
其他好文 时间:
2014-06-26 14:33:46
阅读次数:
148
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained set...
分类:
其他好文 时间:
2014-06-26 11:41:09
阅读次数:
272
在上一篇中testpmd程序已经测试成功的情况下,来到examples/ipvr_frag目录中。
确认环境变量RTE_SDK、RTE_TARGET都正确,执行make。
一、一个逻辑核(lcore)处理一个端口(port)
./build/app/ipvr_frag -c 0x1 -n 4 -- -p 0x1 默认是一个队列
下图是官方对参数p、q的说明文档截图
运行结果如下图...
分类:
移动开发 时间:
2014-06-26 10:27:38
阅读次数:
314
1、下载NDK,
??
android-ndk-r9c-windows-x86_64.zip,解压ndk,截图如下:
2、以编译ndk中的sample为例:
导入sample中的hello-jni项目,导入的项目结果如下:
3、右击项目:helloJni-->右击--->properties--->Builder
4、新建Builder---》Program
5、点击...
分类:
移动开发 时间:
2014-06-26 10:14:42
阅读次数:
291
最新的ASP.NET vNext完全开源且可以跨多个平台运行,在Windows环境下我尝试了下,几乎没花什么工夫就跑起了Sample,而在Linux环境下则要多花了不少时间,所以特别记录下整个过程,希望对其他想要尝鲜的人有所帮助。
分类:
Web程序 时间:
2014-06-25 09:41:49
阅读次数:
173
DescriptionThis sample uses a geoprocessing task that takes an input SQLQuery string and filters 911 calls to display only calls that match the query....
分类:
编程语言 时间:
2014-06-25 09:21:40
阅读次数:
273
中文题不解释
Sample Input
3
AA
BB
CC
ooxxCC%dAAAoen....END
Sample Output
AA: 2
CC: 1
输出病毒出现的次数!
#include
#include
#include
#include
#include
using namespace std;
const int k...
分类:
其他好文 时间:
2014-06-25 08:04:33
阅读次数:
213
【原题】
1799: [Ahoi2009]self 同类分布
Time Limit: 50 Sec Memory Limit: 64 MB
Submit: 554 Solved: 194
[Submit][Status]
Description
给出a,b,求出[a,b]中各位数字之和能整除原数的数的个数。
Input
Output
Sample ...
分类:
其他好文 时间:
2014-06-24 18:38:02
阅读次数:
295