码迷,mamicode.com
首页 > 其他好文
访问者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 访问者模式 */ namespace App_MYCS.HDL_SJMS.FWZMS{ class my_FWZMS { pub ...
分类:其他好文   时间:2016-08-28 16:31:24    阅读次数:107
外观模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 外观模式 */namespace App_MYCS.HDL_SJMS.WGMS{ class myclass_WGMS { pu ...
分类:其他好文   时间:2016-08-28 16:31:14    阅读次数:100
当时第一个例子
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections; namespace MyCS{ public class Class1 { publ ...
分类:其他好文   时间:2016-08-28 16:31:08    阅读次数:94
组合模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 组合模式 * * 树型节点管理 */namespace App_MYCS.HDL_SJMS.ZHMS{ class my_ZHM ...
分类:其他好文   时间:2016-08-28 16:31:00    阅读次数:99
HW6.25
...
分类:其他好文   时间:2016-08-28 16:31:57    阅读次数:83
解释器模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* * * 如同数据转换 文本解释等 可用于协议等的接收数据处理解释 */ namespace App_MYCS.HDL_SJMS. ...
分类:其他好文   时间:2016-08-28 16:31:09    阅读次数:94
滚动加载图片(懒加载)实现原理
...
分类:其他好文   时间:2016-08-28 16:29:59    阅读次数:150
利用epoll写一个"迷你"的网络事件库
epoll是linux下高性能的IO复用技术,是Linux下多路复用IO接口select/poll的增强版本,它能显著提高程序在大量并发连接中只有少量活跃的情况下的系统CPU利用率。另一点原因就是获取事件的时候,它无须遍历整个被侦听的描述符集,只要遍历那些被内核IO事件异步唤醒而加入Ready队列的 ...
分类:其他好文   时间:2016-08-28 16:32:09    阅读次数:169
《Git小书》笔记:3 介绍
概念类比说明: 创建嫌疑人名单--git init pot--创建版本仓库 添加嫌疑人--echo line1 > file1--创建文件 第一次拍摄嫌疑人--git add file1--添加跟踪 侦探的相机--暂存区 老板--仓库区 嫌疑人--工作区 提交拍到的嫌疑人给老板--git commi... ...
分类:其他好文   时间:2016-08-28 16:29:53    阅读次数:426
paper 112:hellinger distance
在概率论和统计理论中,Hellinger距离被用来度量两个概率分布的相似度。它是f散度的一种(f散度——度量两个概率分布相似度的指标)。Hellinger距离被定义成Hellinger积分的形式,这种形式由Ernst Hellinger在1909年引进。 目录 ·1 定义 ·1.1 度量理论 ·1. ...
分类:其他好文   时间:2016-08-28 16:30:33    阅读次数:134
序列化
...
分类:其他好文   时间:2016-08-28 16:30:13    阅读次数:158
适配器模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 为方便统一接口。通过适配器来转换调用 */namespace App_MYCS.HDL_SJMS.SPCMS{ class my ...
分类:其他好文   时间:2016-08-28 16:30:34    阅读次数:126
选代器模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* */ namespace App_MYCS.HDL_SJMS.DDQMS{ class my_DDQMS { public vo ...
分类:其他好文   时间:2016-08-28 16:27:57    阅读次数:137
三目运算符
表达式1?表达式2:表达式3 其中功能是:如果表达式1为真,则整个表达式的值为“表达式2”,否则为表达式3. 以下代码为求四个数的最大值 #include"stdio.h"#include"conio.h"int main(){int a,b,c,d,max;printf("input your f ...
分类:其他好文   时间:2016-08-28 16:29:43    阅读次数:133
虚拟机使用的小技巧
1.快照: 上面的那个就是创建虚拟机快照,双击它便会出现一个界面: 在给快照命名后,我们便会点击创建,这样的话,我们虚拟机当前的状态便会被保存下来。 在之后的任何时候,但凡是我们把虚拟机给玩坏了,我们便可以点击这个按钮: 来还原到当前的状态。 这个功能非常的强大,可以有助于我们的学习虚拟机 2.克隆 ...
分类:其他好文   时间:2016-08-28 16:29:36    阅读次数:112
职责链模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 职责链模式 * * * 好处是把任务分化了,并让各个执行只管处理自己的部分,处理不能转交下一个处理进行处理 * 不好是可能到最后 ...
分类:其他好文   时间:2016-08-28 16:28:39    阅读次数:128
8皇后
#include<stdio.h>#include<math.h>int x[100],j;int w;int a(int b,int c){ int n; n=b-c; if(n==0) return 0; if(n>0) return n; else return -n;}bool place( ...
分类:其他好文   时间:2016-08-28 16:29:19    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!