摘要:
int SplitString(string inputStr, string splitStr, vector &result) { if(inputStr.empty() || splitStr.empty()) return -1; int nCnt = 0; string::size_type nSplit = splitStr.size(); ... 阅读全文
摘要:
#include #include #include #include #include using namespace std; bool Compare(const string &a, const string &b) { return ((a+b) > (b+a)); } void GetResult(vector vNums, string &strRlt) {... 阅读全文
摘要:
Hadoop-1.0.4 安装配置一、 安装VMware本人使用的是11.1.2 build-2780323版本不详细讲述。二、 在VMware上安装ubuntu本人使用的是ubuntu 14.10(为了后续步骤的说明,本人在安装时的用户名、密码均定为hadoop)开启虚拟机后,调整时间区域,调整系... 阅读全文
摘要:
package com.mvp.hadoop.examples;import java.io.IOException;import java.util.StringTokenizer;import org.apache.hadoop.conf.Configuration;import org.apa... 阅读全文