这个文档是?Cloudera Distribution of Apache Kafka?1.3.x. 其他版本的文档在Cloudera Documentation. Using Kafka with Flume 在CDH 5.2.0 及更高的版本中, Flume 包含一个Kafka source and sink。使用它们可以...
分类:
Web程序 时间:
2015-08-29 17:21:58
阅读次数:
338
1 控制台程序启动时传递给main的参数控制台程序不管启动的时候是否有窗口,其参数都只有一个,那就是exe的全路径加exe的名字//运行时不显示控制台窗口
#pragma comment(linker,"/subsystem:\"Windows\" /entry:\"mainCRTStartup\"")#include
using namespace std;
int main(...
分类:
系统相关 时间:
2015-08-29 15:31:20
阅读次数:
217
很好的一道题,很神奇的算法,无向图最小环,inf开太大溢出wa~~~~无语
#include
#define maxn 105
#define inf 1<<28
using namespace std;
int n,m;
int mapp[maxn][maxn];
int dp[maxn][maxn];
void init()
{
for(int i=0;i<maxn;i++)
{
f...
分类:
其他好文 时间:
2015-08-29 15:24:45
阅读次数:
120
题意:n个人,有n-1个关系,表示A管理B,求管理人数为K的人数。(间接上司也算上司)
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ll __int64
#define INF 0x3fffffff
using namespace std;
i...
分类:
其他好文 时间:
2015-08-29 12:46:12
阅读次数:
140
#ifndef __STATICLIST_
#define __STATICLIST_
#include
using namespace std;
#define MAXSIZE 8
#define ElemType int
typedef struct StaticListNode
{
ElemType data;
int cur;
}StaticListNode;
ty...
分类:
其他好文 时间:
2015-08-29 11:17:39
阅读次数:
158
POJ 2392 Space Elevator奶牛们想用c_i个高h_i的积木造通天塔,每种积木不能高过a_i,求塔的最大高度必须按积木的a_i从小到大的顺序递推才能覆盖全部解空间。多重背包问题 1 include 2 #include 3 using namespace std; 4 struct...
分类:
其他好文 时间:
2015-08-29 11:09:39
阅读次数:
213
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 //矩阵大小上限 8 const int SIZ=100; 9 int MOD=100;10 11 //矩阵大小为n*m,初始化全部为012 struct mat1...
分类:
其他好文 时间:
2015-08-29 11:04:46
阅读次数:
133
POJ 1631 Bridging signals如图,原本左右端口应当按顺序连接。现在只有切除部分线路,使得任何线路都不相交。希望你写一个程序计算最后剩下多少线路?话句话说就是求最长上升序列的长度 1 #include 2 #include 3 #include 4 using namespace...
分类:
其他好文 时间:
2015-08-29 11:03:45
阅读次数:
193
上一篇文章用Java方法写出了可以对数组执行的功能,然后在用实例化后的对象调用这些方法来实现这些功能;这篇随笔改用C#语言实现同样的功能方法类:Array 1 using System; 2 using System.Collections.Generic; 3 using System.Linq;...
分类:
编程语言 时间:
2015-08-29 11:03:16
阅读次数:
218
1 #include 2 #include 3 4 using namespace std; 5 6 struct node 7 { 8 int fro,to,next; 9 }e[36000000];10 int dp[6000][2];11 int num=0;12 int h...
分类:
其他好文 时间:
2015-08-29 11:02:00
阅读次数:
223