1.粒子化function Dot(X, Y, Z, R) { this.dx = X;
this.dy = Y; this.dz = Z; this.tx = 0; ...
分类:
编程语言 时间:
2014-07-22 22:59:53
阅读次数:
400
本文以康哥的博客为基础进行修改和补充,详见:http://kangfoo.github.io/article/2014/01/hadoop1.x-wordcount-fen-xi/hadoop
mapreduce 过程粗略的分为两个阶段: 1.map; 2.redurce(copy, sor...
分类:
其他好文 时间:
2014-05-02 00:06:57
阅读次数:
553
原题地址:http://oj.leetcode.com/problems/valid-number/题意:判断输入的字符串是否是合法的数。解题思路:这题只能用确定有穷状态自动机(DFA)来写会比较优雅。本文参考了http://blog.csdn.net/kenden23/article/detail...
分类:
编程语言 时间:
2014-05-02 00:04:57
阅读次数:
483
程序自动产生随机数(srand 设置种子为系统时间,以保证每次运行程序产生的随机数有差别
),然后用户输入结果,程序判断用户输入是否正确减法运算时要保证随机产生的a要大于b(用while循环判断,当然前提条件是用户选择的为减法运算,这里只保证式子产生的结果为非负整数)。#include
#inclu...
分类:
其他好文 时间:
2014-05-01 23:59:45
阅读次数:
499
从文本文件添加到数据库用户表的记录(有两个文件:frmMain.cs SqlHelper.cs
)//FrmMain.cs//作者:Meusing System;using System.Collections.Generic;using
System.ComponentModel;using Sy...
分类:
数据库 时间:
2014-05-01 22:45:21
阅读次数:
667
用javascript实现的照片墙功能:DEMO下载photowall 照片墙 密度:20
1000 ...
分类:
Web程序 时间:
2014-05-01 22:44:42
阅读次数:
626
1 //桶排序思想 2 //假如要排序的是数字是 2 4 5 5 5 8 8 9 1 1 3
#include 4 #define length 10 5 int main() 6 { 7 //数组元素值全部初始化为0 8 int
array[length]={0}; 9 ...
分类:
其他好文 时间:
2014-05-01 22:19:46
阅读次数:
342
本实例:输入一个32位二进制的数,每隔八位分开将其转换为十进制以IP格式输出。 1
#include 2 /* 3 以IP地址形式输出 4 */ 5 int main(void) 6 { 7 int i; 8 int ip[4]={0}; 9
char a[33];...
分类:
其他好文 时间:
2014-05-01 22:19:07
阅读次数:
754
项目的基本要求: 掌握递归
掌握JavaScript+html+css+jsp+servlet初步应用 掌握分页写法 初步掌握前台/后台的概念简单的功能需求: 1.能够树形展现
2.能够平板型展现 3.能够回复帖子 4.后台能够管理帖子,如:删除选择Generic JDBC Co...
分类:
其他好文 时间:
2014-05-01 18:42:33
阅读次数:
434
~/.conkyrc# Conky, a system monitor, based on
torsmo## Any original torsmo code is licensed under the BSD license## All code
written since the fork of...
分类:
系统相关 时间:
2014-05-01 18:42:00
阅读次数:
580