关于写脚本,1 2 3 5 8 13
.............用脚本写出,第一百个数是什么shell:##########下面是脚本内容###########!/bin/bashfor((i=1;i////////////////////脚本到此结束///////////////////值得注意,...
分类:
Web程序 时间:
2014-05-14 01:50:36
阅读次数:
296
怎么说呢
-_-....委托就是一个存储方法引用的类很简单也不简单^_^...废话不多说了,直接上代码,解释都在代码里头了. 1 /* 2 * Created by
SharpDevelop. 3 * User: llh 4 * Date: 2014/5/12 5 * Time: 17:31...
分类:
其他好文 时间:
2014-05-14 01:47:29
阅读次数:
296
// boost_time.cpp : 定义控制台应用程序的入口点。
//made by davidsu33
//2014-5-11
//the usage of posix_time
#include "stdafx.h"
#include
#include
#include
using namespace std;
#define SHOW_VARIABLE(x){ cou...
分类:
其他好文 时间:
2014-05-13 09:12:49
阅读次数:
656
I Love Military Chess
Accepted : 45
Submit : 141
Time Limit : 1000 MS
Memory Limit : 65536 KB
题目描述
陆军棋,又称陆战棋,简称军棋,是中国近代的一种两人棋类,设计根据军队中的军阶。每一方有25枚棋子...
分类:
其他好文 时间:
2014-05-13 08:22:28
阅读次数:
286
此脚本可以做一个定时的检测,超出设定的值,即往邮箱发送警告脚本用到bc,sendmail,163邮箱,yuminstallbc#!/bin/bash
#SystemMonitoringScript
while[1]
do
#本机需开启postfix或sendmail服务。
#报警邮件地址设置
MAILFROM=root@localhost
MAILTO=your_mail@163.com
#设置..
分类:
系统相关 时间:
2014-05-13 05:05:29
阅读次数:
649
一、什么是I/OI/O设备是计算机核心部件和外围设备进行交互的通道,因此I/O是一个统称。但这里所说的I/O与计算机的硬件设备没有太大关系,它是用来实现应用程序的I/O重定向。通常应用程序需要从外部用户获取数据,也需要将运行结果反馈给外部用户,因此程序本身要有输入输出功能..
分类:
其他好文 时间:
2014-05-13 04:16:13
阅读次数:
361
whileCONDITION;dostatementdone进入循环:条件满足退出循环:条件不满足untilCONDITION;dostatment...done#!/bin/bash#read-p"Inputsomething:"STRINGwhile[$STRING!=‘quit‘];doecho$STRING|tr‘a-z‘‘A-Z‘read-p"Inputsomething:"STRINGdone#!/bin/bash#read-p"Inputsomething:..
分类:
系统相关 时间:
2014-05-13 03:58:53
阅读次数:
343
环境windows系统需求通过ping监控网络状态解决DOS中添加一个loop循环,以便监控ping状态,并命名一个文件名,注意根据需要给log.txt添加目录。:topecho%time%>>log.txtping-n1IP Address|findstr"TTL">>log.txtgototop注意:命名的文件名称一定不可..
分类:
其他好文 时间:
2014-05-13 03:23:55
阅读次数:
391
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:
数据库 时间:
2014-05-13 02:46:59
阅读次数:
809
暴力出奇迹。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll __int64
#define N 42
ll n,m,ans;
ll Gcd(ll x,ll y){
if(x>y)swap(x,y);
while(x){
y%=...
分类:
其他好文 时间:
2014-05-12 23:11:06
阅读次数:
445