前奏:CentOS 6.5下载地址http://mirror.centos.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1to2.torrent 1.Install or upgrade an existing system 安装或升级现有...
分类:
其他好文 时间:
2015-01-21 22:01:19
阅读次数:
293
01.#include 02.#include 03.#include 04.05.typedef std::list list_any;06.07.//关键部分:能够存放随意类型的对象08.void fill_list(list_any& la)09.{10. la.push_back(1000)...
分类:
其他好文 时间:
2015-01-21 22:00:33
阅读次数:
335
刚才看了一篇2014年国人开发的最热门的.NET开源项目 TOP 25,随手下载了排行第一的奎宇工作室 / DotNetCodes C#,打开解决方案看着还不错,包含很多方面的公共操作类。再随手打开了一个RandomHelper,这代码看着眼熟,注释挺多,有我的风格啊。我把N年前写的代码找出来,.....
分类:
其他好文 时间:
2015-01-21 22:00:23
阅读次数:
222
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:
其他好文 时间:
2015-01-21 21:59:44
阅读次数:
192
设 $$\bex a_0=1,\quad a_1=\frac{1}{2},\quad a_{n+1}=\frac{na_n^2}{1+(n+1)a_n}\ (n\geq 1). \eex$$ 试证: $\dps{\sum_{k=0}^\infty\frac{a_{k+1}}{a_k}}$ 收敛, 并...
分类:
其他好文 时间:
2015-01-21 22:00:19
阅读次数:
203
Common SubsequenceTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionA subsequence of a given sequence is the given sequence...
分类:
其他好文 时间:
2015-01-21 21:58:29
阅读次数:
173
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1754线段树功能:update:单点替换 query:区间最值模板裸题。。。#pragma comment(linker,"/STACK:102400000,102400000")#include #in...
分类:
其他好文 时间:
2015-01-21 21:57:29
阅读次数:
185
在上一篇文章中我们主要讲了C#如何和JS通信,这一篇文章中,我们将创建一个最基础的Button控件WUI库中控件的继承机制我们先解释最简单的继承机制,以后WUI库的继承机制会比这个复杂的多第一:PanelMain类我们在上一篇中说了,PanelMain是一个特殊的Panel,每一个用户程序都应该自己...
分类:
其他好文 时间:
2015-01-21 21:59:37
阅读次数:
218
1 var ids=[];2 ids=getChildren(ids, treeNode);//TreeNode是选中节点,ids是子节点id数组,格式:123,223,4,551.获取直接子节点的id//返回值包含选中节点的id,即ids[0]function getChildren(ids, t...
分类:
其他好文 时间:
2015-01-21 21:58:05
阅读次数:
206
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2015-01-21 21:58:16
阅读次数:
273
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2015-01-21 21:57:11
阅读次数:
174
Object-c的类可以多重继承么?可以实现多个接口么?Object-c的类不可以多重继承;可以实现多个接口,通过实现多个接口可以完成C++的多重继承;虽然OC在语法上禁止类使用多继承,但是在协议的遵守上却允许使用多继承。所以可以用协议来实现多继承。但是协议只能提供接口,而没有提供实现方式,如果只是...
分类:
其他好文 时间:
2015-01-21 21:56:50
阅读次数:
238
use strict包含3个部分。其中之一(use strict "subs")负责禁止乱用的裸字。这是什么意思呢?如果没有这个限制,下面的代码也可以打印出"hello"。my $x = hello;print "$x\n"; # hello这样使用不符合我们平常把字符串放在引号里的习惯,但是...
分类:
其他好文 时间:
2015-01-21 21:55:50
阅读次数:
187
[name,path]=uigetfile('*.jpg;*.png;*.bmp','选择一张图片');f=imread([path name]);count = 0; T = mean2(f); done = false; while ~done countcount = co...
分类:
其他好文 时间:
2015-01-21 21:54:07
阅读次数:
378
第1章 前处理工序的缺陷1.1脱脂不良缺陷名脱脂不良对应英语Uneven degreasing曾用名产生工序脱 脂起因工序脱 脂定义:由于脱脂不完全而产生的浸蚀不均。现象:因浸蚀不均变成凸凹不平,呈现不同光泽。着色后变成色斑。原因:(1)附着在表面处理前材料上的油脂,在脱脂处理中未除去就进行浸蚀处理...
分类:
其他好文 时间:
2015-01-21 21:54:30
阅读次数:
449
简单题,却犯了两个错误导致WA了多次。第一是程序容错性不好,没有考虑到输入数据中可能给实际已经罚下场的人再来牌,这种情况在system测试数据里是有的。。。二是chronologically这个词没注意,其实如果输入是按时间顺序的,就直接在线处理就行了,用不着int team1[110][110],...
分类:
其他好文 时间:
2015-01-21 21:54:08
阅读次数:
164
system()函数的声明和说明如下: 注意它的描述那里,system()执行一个由command参数定义的命令,通过调用/bin/sh -c命令来实现这个功能。也就是说它的逻辑是这样的! 进程调用system函数,system函数调用fork创建一个子进程,然后再调用exec函数来把这...
分类:
其他好文 时间:
2015-01-21 21:54:53
阅读次数:
272