编辑器 vs2012 1 #include 2 #include //本来OpenGL程序一般还要包含和, 3 //但GLUT的头文件中已经自动将这两个文件包含了,不必再次包含。 4 #include 5 #include 6 7 cons...
分类:
其他好文 时间:
2015-04-25 12:08:25
阅读次数:
223
下载PostSharp(Visual Studio Gallery)。安装一个AOP编译器和引入PostSharp.Aspects(注意安装过程中请使用免费的Express版本),然后初步演示代码:using PostSharp.Aspects;using System;namespace Cons...
分类:
其他好文 时间:
2015-04-25 09:21:52
阅读次数:
168
/** * MySQL数据库单例实现 * * @author shizqiang at 2015-04-22 * */final class MySQLFactory { private static $instance; private function __cons...
分类:
数据库 时间:
2015-04-22 23:57:48
阅读次数:
147
SICP/Chapter2/Exercise-2.4
Lambda表达式语法
(lambda kw-formals body)
题目描述用过程性表示方式重写序对的cons、car、cdrScheme代码(define (cons-24 x y)
(lambda (m) (m x y)))
(define (car-24 z)
(z (lambda (p q) p)))这段代码只有4行,...
分类:
其他好文 时间:
2015-04-22 22:22:40
阅读次数:
175
#lang racket;guo lv qi(define (filter predicate sequence) (cond ((null? sequence) '()) ((predicate (car sequence)) (cons (car sequence) ...
分类:
其他好文 时间:
2015-04-20 22:38:28
阅读次数:
169
本文转载至http://ju.outofmemory.cn/entry/18807有时候我们在内嵌的webview中希望点击一个链接之后,触发iOS原生事件,而不是webview内页面跳转(因为webview的跳转很生硬,而ajax+js模拟则不如原生segue平滑)。有时候我们希望在页面内cons...
分类:
移动开发 时间:
2015-04-20 20:34:50
阅读次数:
236
编码:class Program { static void Main(string[] args) { int obj1 = 2; Test test1 = new Test(obj1); Cons...
Network
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 7179
Accepted: 2600
Description
A network administrator manages a large network. The network cons...
分类:
Web程序 时间:
2015-04-17 11:42:50
阅读次数:
167
// 在 http://fsharp.net 上了解有关 F# 的更多信息// 请参阅“F# 教程”项目以获取更多帮助。type list = | Nil | Cons of int * listlet x = Cons(1, Cons(2, Cons(3, Cons(4, Nil)...
分类:
其他好文 时间:
2015-04-16 19:20:01
阅读次数:
127
题意:给一个串s,按顺序一个个加入到序列里面。输出每次加入之后序列中的本质不同的回文串个数。回文自动机模板题- -extend函数里面,如果那个if进去了,就代表多了一个本质不同的回文串。 1 #include 2 #include 3 const int MAXN=100000+5; 4 cons...
分类:
其他好文 时间:
2015-04-12 01:22:34
阅读次数:
145