1.通信协议,两个基本功能,显示消息和发送消息。/// /// 服务器端回调接口 /// public interface IChatCallback { /// /// 回调方法,显示聊天消息 /// /// void ShowMessage(string message); }publ...
分类:
Web程序 时间:
2014-11-21 18:13:00
阅读次数:
160
分离关注( Separation of Concerns : SOC)是Ioc模式和AOP产生最原始动力,通过功能分解可得到关注点,这些关注可以是 组件Components, 方面Aspects或服务Services。 从GoF设计模式中,我们已经习惯一种思维编程方式:Interface Driv....
分类:
其他好文 时间:
2014-11-21 18:10:49
阅读次数:
274
第一种typedef void(^SDWebImageDownloaderProgressBlock)(NSInteger receivedSize, NSInteger expectedSize);@interface ssyTest : NSObject{ SDWebImageDownlo...
分类:
其他好文 时间:
2014-11-21 18:09:00
阅读次数:
178
Java数据类型:
1.原始数据类型(8种)
第一类:整型 byte short int long
第二类:浮点型 float double
第三类:逻辑型 boolean(它只有两个值可取true false)
第四类:字符型 char
2.引用数据类型(除8种)
interface class 数组 enum...
分类:
编程语言 时间:
2014-11-21 16:25:21
阅读次数:
167
package listenermode;public class Button { //在类中定义接口对象 ,都是button的行为 public interface OnClickListener { public void onClickListener (); } private On...
分类:
其他好文 时间:
2014-11-21 15:39:34
阅读次数:
139
1 FastCGI介绍 FastCGI:快速通用网关接口(Fast Common Gateway Interface/FastCGI)是一种让交互程序与Web服务器通信的协议。 FastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不会每次都要花费时间去fork一...
分类:
其他好文 时间:
2014-11-21 10:36:45
阅读次数:
318
泛型接口using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication14{ public interface IGenericTnte...
分类:
其他好文 时间:
2014-11-21 09:05:29
阅读次数:
195
如何开发Qt插件,可以在Qt Assistant 中搜索"Qt Plugins"或"How to Create Qt Plugins",看看那篇manual中的介绍。
其中涉及到了几个宏
Q_DECLARE_INTERFACE( ClassName, Identifier)
This macro associates the given Identifier (a string li...
分类:
其他好文 时间:
2014-11-21 06:59:25
阅读次数:
195
1. 1 #import "Fraction.h" 2 3 @interface Fraction (MathOps) 4 5 - (Fraction *) add: (Fraction *) f; 6 7 - (Fraction *) mul: (Fraction *) f; 8 9 - ...
分类:
其他好文 时间:
2014-11-21 01:22:09
阅读次数:
139
复制了一个eth0 的网卡 内容为eth1但是在service network restart 重启的时候出现 [root@ssc ~]# service network restartShutting down interface eth0: ...
分类:
其他好文 时间:
2014-11-20 21:39:35
阅读次数:
276