Given amxnmatrix, if an element is 0, set its
entire row and column to 0. Do it in place.click to show follow up.Follow up:Did
you use extra space?A s...
分类:
其他好文 时间:
2014-05-12 08:22:51
阅读次数:
255
原文:一些有用的javascript实例分析(二) 1 5 求出数组中所有数字的和 2
window.onload = function () 3 { 4 var oBtn =
document.getElementsByTagName("button")[0]; 5 var oInput = do...
分类:
编程语言 时间:
2014-05-12 07:20:18
阅读次数:
417
p2pcli.c
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ERR_EXIT(m) do { perror(m...
分类:
其他好文 时间:
2014-05-11 07:13:56
阅读次数:
750
import time
import SimpleHTTPServer
import SocketServer
BYTES_PER_SECOND=160*1024
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
"""Serve a GET re...
分类:
其他好文 时间:
2014-05-10 03:36:34
阅读次数:
276
1. C99标准规定了如下关键字:auto _Bool break case char
_Complexconst continue default restrict do ...
分类:
编程语言 时间:
2014-05-10 02:27:27
阅读次数:
422
Java概述,Java是什么?Java环境变量设置Java基本语法Java对象和类Java基本数据类型Java变量类型Java修饰符类型Java基本运算符Java循环for,
while和do...whileJava决策制定Java Numbers类Java String类Java数组Java日期时...
分类:
编程语言 时间:
2014-05-10 00:49:04
阅读次数:
415
NAME mkdir - make directoriesSYNOPSIS mkdir
[OPTION]... DIRECTORY...DESCRIPTION Create the DIRECTORY(ies), if they do not
already ex...
分类:
系统相关 时间:
2014-05-10 00:10:10
阅读次数:
411
#include
#include
#include
#ifndef VIRTUAL
#define VIRTUAL
#endif
#ifndef DELETE
#define DELETE(X) do { free(X);X = NULL; } while(0)
#endif
#define NEW(TYPE,pInstance,SUBTYPE) struct TYPE* pInst...
分类:
编程语言 时间:
2014-05-09 22:29:48
阅读次数:
455
Function cuttextlen(intext, lens)
If Len(intext)
cuttextlen = intext
Else
tmptext = intext
GetTexts = ""
Do While Not Len(tmptext)
GetTexts = GetTexts + Left(tmptext, lens)
tmptext = Right...
分类:
其他好文 时间:
2014-05-09 22:22:08
阅读次数:
320
一、数学库
1. 随机数
math.randomseed(os.time()); -- 设置随机种子
for i=1, 100 do
print(math.random(-1000,1000)); -- 随机区间 [-1000,1000], math.random(1000) 表示 [1,1000]
end;
2. 最大,最小值
math.max...
分类:
其他好文 时间:
2014-05-09 20:58:11
阅读次数:
669