码迷,mamicode.com
首页 > 其他好文
状态模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* */ namespace App_MYCS.HDL_SJMS.ZTMS{ class my_ZTMS { public void ...
分类:其他好文   时间:2016-08-28 16:26:41    阅读次数:110
磁盘操作
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Management; namespace DotNet.MYC ...
分类:其他好文   时间:2016-08-28 16:26:42    阅读次数:131
备忘录模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 备忘录模式 */ namespace App_MYCS.HDL_SJMS.BWLMS{ class my_BWLMS { pub ...
分类:其他好文   时间:2016-08-28 16:27:35    阅读次数:206
HDU4971 A simple brute force problem.(强连通分量缩点 + 最大权闭合子图)
题目大概说有n个可以获益的项目,还有m个有一定代价的技术问题。解决某个项目需要先解决某些技术问题;而解决某些技术问题又需要解决另外一些技术问题;如果两个技术问题互相依赖,则要同时解决它们。问能获得的最少收益是多少。 ...
分类:其他好文   时间:2016-08-28 16:26:47    阅读次数:135
单例模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;/* 单例模式 * 注意多线程下的问题 */namespace App_MYCS.HDL_SJMS.DLMS_1{ class my_D ...
分类:其他好文   时间:2016-08-28 16:28:05    阅读次数:99
Socket学习4 文件传输
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Sockets;using System.Net;using System.Threading;usi ...
分类:其他好文   时间:2016-08-28 16:27:55    阅读次数:153
命令模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 命令模式 * * 可以对操作相关命令处理进行过滤和取消回退的操作 * (让命令和操作分开来) */ namespace App_ ...
分类:其他好文   时间:2016-08-28 16:25:58    阅读次数:109
原型模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 原型模式 */ namespace App_MYCS.HDL_SJMS.YXMS{ class my_YXMS { public ...
分类:其他好文   时间:2016-08-28 16:25:12    阅读次数:189
建造者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO; /* */ namespace App_MYCS.HDL_SJMS.JZZMS{ class my_J ...
分类:其他好文   时间:2016-08-28 16:26:30    阅读次数:112
border-radius:50%和100%究竟有什么区别
之前写css圆形时总是直接设置border-radius为50%。后来看某css动画网站时发现作者都是用的100%。遂去了解了一下2者的差别。 border-radius的值是百分比的话,就相当于盒子的宽度和高度的百分比。我们知道在一个正方形内做一个面积最大的圆形,这个圆的半径就为正方形边长的一半。 ...
分类:其他好文   时间:2016-08-28 16:25:21    阅读次数:121
NBUT 1635 Explosion(最小顶点覆盖)
[1635] Explosion 时间限制: 10000 ms 内存限制: 65535 K 问题描述 there is a country which contains n cities connected by n - 1 roads(just like a tree). If you place ...
分类:其他好文   时间:2016-08-28 16:24:44    阅读次数:219
工厂模式
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 工厂模式 */ namespace App_MYCS.HDL_SJMS.GCMS{ class my_GCMS_DY { pub ...
分类:其他好文   时间:2016-08-28 16:23:23    阅读次数:150
简单工厂
using System;using System.Collections.Generic;using System.Linq;using System.Text; /* 简单工厂 */namespace App_MYCS.HDL_SJMS.JDGC{ //调用 public class my_JD ...
分类:其他好文   时间:2016-08-28 16:23:35    阅读次数:131
组合(1-m中选n个数)
#include<stdio.h>int a[100],b[100]={0},m,n;bool p(int k)//定义一个bool类型函数 ,用来判断 { if(b[k]==1) { return false; } return true;}void s(int k)//定义一个函数,用来回溯; ...
分类:其他好文   时间:2016-08-28 16:25:06    阅读次数:137
关于Hibemate
1.Hibernate定位 HIbernate是一款实现了ORM思想的框架 JDO TOpLink 2.HIbernate初次解释 Hibernate:冬眠,蛰伏 和持久化有关系 将内存中data持久化到咱们的硬盘的db中。 HIbernate的作为: 3.一个简单案例: 1.构建了一个Studen ...
分类:其他好文   时间:2016-08-28 16:24:57    阅读次数:263
装饰模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;/* 装饰模式 * * 定义接口或类(类或抽象类) * 分类实现 * 如多种对象类 A 或 B * 使用继承实现B类多样代处理和自己的处 ...
分类:其他好文   时间:2016-08-28 16:25:15    阅读次数:165
POJ 3087 Shuffle'm Up
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 3087 Submit Status Practice POJ 3087 Description A commo ...
分类:其他好文   时间:2016-08-28 16:23:44    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!