第七章 F# 库(五)
事件(Microsoft.FSharp.Control.Event)模块
可以把 F# 中的事件看做是函数的集合,能够通过函数调用来触发。其思想是,函数本身注册成事件,即函数的集合,等待事件发生的通知;然后,触发函数发出事件已经发生的通知,引发所有添加到事件中的函数被执行。
我们将讨论事件模块中的下列功能:
创建和处理事件:使用 create...
分类:
其他好文 时间:
2014-07-22 23:03:12
阅读次数:
314
第七章 F# 库(四)
打印(Microsoft.FSharp.Text.Printf)模块
打印(Printf)模块提供了以类型案例的方式格式化字符串的函数,打印模块中函数的第一个参数是值的占位符,它返回的函数需要为占位符提供值;占位符用百分号加一个表示类型的字母组成,表 7-2 是完整的清单。
表 7-2 打印模块的占位符和标记
标记
...
分类:
其他好文 时间:
2014-07-22 23:02:35
阅读次数:
383
第七章 F# 库(三)
序列(Microsoft.FSharp.Collections.Seq)模块
Microsoft.FSharp.Collections.Seq 模块包含所有处理集合的模块,只要它支持 IEnumerable 接口, .NET 框架的 BCL 中的大多数集合都是的。这个模块之所以称为序列(Seq),是因为序列是IEnumerable 接口的别名,是对其简...
分类:
其他好文 时间:
2014-07-22 23:02:32
阅读次数:
208
在鼠标中选中UltraNav,找到Application Gestures - Edge
Swipes,取消Enable Edge Swipes。
环境:Microsoft(R)Windows(R)Server2003,EnterpriseEditionServicePack2Microsoft(R)Windows(R)Serverxp,EnterpriseEditionServicePack3描述:安装VmwarevSphereClinet5.5过程中出现警告如下:VmwarevSphereClinet5.5安装在WindowsXP或者WindowsServer2003系统时,vSphere客户..
分类:
Windows程序 时间:
2014-05-03 01:06:15
阅读次数:
11720
HDU 2063
求一个二分图的最大匹配。
完全的裸题。贴代码。
#include
#include
#include
#include
#include
using namespace std;
vector G[1005];
bool check[1005];
int mac[1005];
int n;
void add_edge(int from,int to)
{
G[f...
分类:
其他好文 时间:
2014-05-02 20:57:04
阅读次数:
359
需要使用redis来做任务队列,所以花点时间研究下怎么使用...
本文通过Azure Website 和 Azure Table Storage
打造一个网络报名系统,介绍Azure的开发体验,感受云的力量。
分类:
其他好文 时间:
2014-05-01 20:07:49
阅读次数:
494
The server network address “TCP://myserverAddress:50221″ cannot be reached or does not exist.
Check the network address name and that the ports for the local and remote endpoints are operational.
(Microsoft SQL Server, Error: 1418)...
分类:
Web程序 时间:
2014-05-01 18:35:53
阅读次数:
665
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Mai...
分类:
其他好文 时间:
2014-04-30 22:24:38
阅读次数:
226