第七章 循环语句1. 循环语句的老祖宗--Goto语句(可用do…while();代替) 1
//①goto语句的使用(一般情况不用,但想在多重循环中一下子跳到外面时可以用)*******************① 2 int i=0; 3
number: i++; 4...
分类:
其他好文 时间:
2014-05-19 22:45:52
阅读次数:
361
题目来源:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3490题意: 给出两个集合Y
, N , 给出区间【low , high】 , 问在 这个区间有多少个这样的数,x , 满足, 集合Y中至少一个数被x 整除, 且 集合 ...
分类:
其他好文 时间:
2014-05-19 10:35:04
阅读次数:
256
Delphi从XE以后集成里SVN客户端, 安装完Delphi以后,
在bin\subversion下, 存放的就是SVN客户端文件,
可惜版本有点低(好像是1.7的)如果想更新成高版本的客户端文件按下面的方法:1.到collab的网站SVN下载页面:http://www.collab.net/do...
分类:
其他好文 时间:
2014-05-19 08:48:28
阅读次数:
238
rtx客户端绿化方法:1-复制客户端安装目录。2-运行以下命令,注册dll文件和ocx文件,及rtx程序注册。rtx.exe
/regserverren Config.dll c.dFor %%a in (*.dll) do regsvr32.exe /s %%aFor %%a in
(*.ocx)...
分类:
其他好文 时间:
2014-05-18 19:29:18
阅读次数:
480
脚本名: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
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5235
Calculate the Function
Time Limit: 2 Seconds Memory Limit: 65536 KB
You are given a list of numbers A1 A2 .. AN...
分类:
其他好文 时间:
2014-05-18 09:52:49
阅读次数:
410
sendfd.c
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define ERR_EXIT(m) do { perror(m); \...
分类:
其他好文 时间:
2014-05-16 01:27:02
阅读次数:
294
[ 问题: ]
Hint:
Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
Notes: It is intended for this...
分类:
其他好文 时间:
2014-05-15 23:34:05
阅读次数:
353
#!/bin/bash
#
Count=0
forUserNamein$@;do
ifid$UserName&>/dev/null;then
echo"$UserNameexists."
else
useradd$UserName
echo"Add$UserNamesuccessfully."
Count=$[$Count+1]
fi
done
echo"Add$Countnewusers."
分类:
其他好文 时间:
2014-05-15 18:52:21
阅读次数:
214
FreeBSD删除文件缓存,在负载方面FreeBSD比CentOS好很多很多。#!/bin/sh
if[!-s/tmp/dir.dat];then
find/home/www/web/cache-typed>/tmp/dir.dat
fi
mkdir/var/tmpdir
DIRS=`cat/tmp/dir.dat`
foriin$DIRS
do
load=$(top-n1|awk-F‘[.]+‘‘/averages/{print$6}‘)
#rsync--delet..
分类:
其他好文 时间:
2014-05-15 18:51:06
阅读次数:
314