#!r6rs
( import ( rnrs base ( 6 ) )
( rnrs io simple ( 6 ) ) )
( define ( deriv exp var )
( define ( variable? x )
( symbol? x ) )
( define ( =number? exp num )...
分类:
其他好文 时间:
2014-08-01 02:28:20
阅读次数:
210
1 工厂模式简介
工厂模式的定义:简单地说,用来实例化对象,代替new操作。
工厂模式专门负责将大量有共同接口的类实例化。工作模式可以动态决定将哪一个类实例化,不用先知道每次要实例化哪一个类。
工厂模式可以分一下三种形态:
简单工厂 (Simple Factory)
模式:又称静态工厂模式(StaticFactory)。
工厂方法 (Factroy M...
分类:
编程语言 时间:
2014-08-01 00:10:40
阅读次数:
320
This part of the tutorial describes how to?setup a simple Ceph client using librados (for?C++). The only information that the client requires for the?cephx?authentication is Endpoint of the mon...
分类:
其他好文 时间:
2014-07-31 21:24:07
阅读次数:
399
One Person Game
Time Limit: 1 Second Memory Limit: 32768 KB Special Judge
There is a very simple and interesting one-person game. You have 3 dice, namely Die1, Die2 and Die3. Die1 ha...
分类:
其他好文 时间:
2014-07-31 20:51:57
阅读次数:
311
shell的种类: sh ?- Bourne shell csh or tcsh - C shell korn - Korn shell bash - GNU Bourne-Again shell 1.最简单的列子 例子 #!/bin/bash ? #?This?is?a?very?simple?example?echo?Hello?World e...
分类:
其他好文 时间:
2014-07-31 00:13:45
阅读次数:
454
to be added...gdb a.out[Inferior 1 (process 9718) exited with code 05](gdb) listLine number 15 out of range; t.c has 14 lines.(gdb) list 11 #include2 ...
分类:
数据库 时间:
2014-07-30 23:33:25
阅读次数:
352
A Simple Problem with Integershttp://poj.org/problem?id=3468 1 #include 2 #define lrrt int L,int R,int rt 3 #define iall 1,n,1 4 #define imid int mid=...
分类:
其他好文 时间:
2014-07-30 23:32:35
阅读次数:
338
A Simple Problem with IntegersTime Limit:5000MSMemory Limit:131072KTotal Submissions:59798Accepted:18237Case Time Limit:2000MSDescriptionYou haveNinte...
分类:
其他好文 时间:
2014-07-30 23:09:55
阅读次数:
370
Description
Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of this game are very simple: At first, the nine rings are all on the bar....
分类:
其他好文 时间:
2014-07-30 20:50:24
阅读次数:
319
题意:典型的线段树C,Q问题,有n个数a[i] (1~n),C, a, b,c在[a,b]区间增加c
Q a b 求[a,b]的和。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#defi...
分类:
其他好文 时间:
2014-07-30 20:45:24
阅读次数:
242