码迷,mamicode.com
首页 >  
搜索关键字:模拟c语言中的private stati    ( 386个结果
string.format、string.connect和+=运算 效率计算
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace StringFormatEfficiency{ class Program { stati...
分类:其他好文   时间:2014-08-08 23:40:26    阅读次数:293
委托三------------多播委托与匿名方法
============================================多播委托-------------------------------------主程序usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication3 { classProgram { stati..
分类:其他好文   时间:2014-08-08 02:10:55    阅读次数:272
hdu1350Taxi Cab Scheme (最小路径覆盖)
Taxi Cab Scheme Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 712 Accepted Submission(s): 337 Problem Description Running a taxi stati...
分类:其他好文   时间:2014-08-04 21:30:08    阅读次数:272
3.C#面向对象基础聊天机器人
基于控制台的简单版的聊天机器人,词库可以自己添加。源码如下:using System;using System.Collections.Generic;using System.Text;namespace 面向对象聊天机器人1{ class Program { stati...
分类:其他好文   时间:2014-08-02 12:38:13    阅读次数:236
【单例模式】Singleton pattern
前言:有很多时候,在一个生命周期中我们只要一个对象就可以了,比如:线程池,缓存,对话框,日志,显卡驱动等等。如果造出多个实例,就会导致许多问题产生,例如:程序的行为异常、资源使用过量,或者说不一致的结果。public class Singleton { private stati...
分类:其他好文   时间:2014-07-31 15:58:36    阅读次数:287
单例模式 分析 代码优化
单例模式是23种设计模式之一,是比较简单的一种设计模式,它的目的是无论调用多少次,都返回同一个对象,它的特点是构造器私有化。 它分为两种结构,一种是懒汉式的,一种是饿汉式的,它们各有优缺点,我们先从饿汉式看起,代码如下:public class Single { public stati...
分类:其他好文   时间:2014-07-29 21:19:52    阅读次数:184
【C#】扩展方法
前沿: 扩展方法使你能够向现有类型“添加“方法,而无需创建新的派生类型、重新编译或以其它方式修改原始类型。扩展方法是一种特殊的静态方法,但可以像扩展类型上的实例方法一样进行调用。正文: 为了理解扩展方法,最佳的办法就是看代码,假如我们要定义一个下面这样的IndexOf方法: public stati...
分类:其他好文   时间:2014-07-27 09:53:22    阅读次数:226
static用法总结
C++的static有两种用法:面向过程程序设计中的static和面向对象程序设计中的static。前者应用于普通变量和函数,不涉及类;后者主要说明static在类中的作用。一、面向过程设计中的static1、静态全局变量2、静态局部变量3、静态函数二、面向对象的static关键字(类中的stati...
分类:其他好文   时间:2014-07-22 22:51:35    阅读次数:195
POJ1195 Mobile phones 【二维线段树】
Mobile phones Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 14291   Accepted: 6644 Description Suppose that the fourth generation mobile phone base stati...
分类:其他好文   时间:2014-07-15 10:43:45    阅读次数:224
TransactionSynchronizationManager TransactionSynchronizationAdapter
public class TransactionSynchronizer { private final static Logger logger = LoggerFactory.getLogger(TransactionSynchronizer.class); public stati...
分类:其他好文   时间:2014-07-14 22:07:34    阅读次数:567
386条   上一页 1 ... 35 36 37 38 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!