Do you know how to write the for-loop
efficiently? Read this to get it. :)
分类:
编程语言 时间:
2014-05-18 19:24:37
阅读次数:
382
脚本名:power.sh脚本内容:Shell代码 #!/bin/sh username3=$1
dir_name2=$2 # get existing directory file_path=$dir_name2 while true do if [ -d
$fil...
分类:
系统相关 时间:
2014-05-18 18:49:24
阅读次数:
319
题目链接:11270 - Tiling Dominoes
和POJ 2411一样的题目,试着用插头DP写了下
代码:
#include
#include
#include
using namespace std;
int n, m, pre = 0, now = 1;
long long dp[2][2222];
int main() {
while (~scanf("%d%d",...
分类:
其他好文 时间:
2014-05-18 14:44:37
阅读次数:
264
简介grep (global search regular expression(RE)
and print out the
line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgr...
分类:
系统相关 时间:
2014-05-18 02:10:16
阅读次数:
529
接口:打印机接口interface Printer{ public void
read();}函数一:佳能打印机class CanPrinter implements Printer{ public void read(){
System.out.println("Canr...
分类:
编程语言 时间:
2014-05-18 00:54:20
阅读次数:
302
- 好莱坞6大发行公司: - Warner Bros(WB): 《哈利·波特》, 黑客帝国, 蝙蝠侠,
- New Line cinema新线(2008):魔戒, 霍比特人, 尖峰时刻, 死神来了, 刀锋战士, 德州电锯杀人狂, 地心历险记, 《忍者神龟》, -
Buena Vista(Disney...
分类:
其他好文 时间:
2014-05-18 00:13:25
阅读次数:
357
#include#include#include#includeusing namespace
std;int main(){ int t; string s; cin>>t; while(t--) { cin>>s; int
ls=s.le...
分类:
其他好文 时间:
2014-05-18 00:04:05
阅读次数:
246
php验证码
:1.生成不同的字体颜色(//生成颜色,当第一次调用生成颜色的方法,是生成背景颜色,默认是黑色//如果想自定义背景颜色,用到imagefill函数$bg =
imagecolorallocate($im,200,200,200);imagefill($im,0,0,$bg);//第二次...
分类:
其他好文 时间:
2014-05-17 19:55:00
阅读次数:
244
一、资产定义也就是江项目任务上的物料按照一定格式生成资产信息,其中每个独立物料生成一条资产,具体操作步骤如下:1、省本部库存超级用户系统内生成领料单、审批领料单、最后进行出库处理操作正式将物料进行出库(将物料发送至项目上)2、省本部项目会计超级用户在系统内提交成本征收管理器请求和事务处理导入请求,这...
分类:
数据库 时间:
2014-05-17 19:27:54
阅读次数:
549
高效的代码块: /* Iterator it =
al.iterator();//获取迭代器,用于取出集合中的元素。 while(it.hasNext()) { sop(it.next()); } ...
分类:
其他好文 时间:
2014-05-17 18:28:51
阅读次数:
252