Windsor是Castle提供的一个IOC框架,使用非常简单,支持批量注册。开始快速入门
首先引用dll
两个dll版本均是最新的3.3.0.0
新建两个接口文件IPrinter(打印接口)和ICharge(收费接口)
public interface IPrinter
{
void RegPrint(int regID);...
1.在函数或过程中声明的变量是局部变量,只能在函数或过程中使用 2.在单元的implementation部分声明的变量是单元级的(又称模块级、窗体级)变量,该单元的所有函数与过程都能使用,其他引用该单元的单元就没法使用该变量 3.在interface部分定义的变量是全局变量,其他引用该单元的...
程序是如何被执行的?当操作系统启动之后,就会等待用户操作。那么用户是如何与操作系统沟通呢?如何触发程序执行呢?通常,与操作系统交互,有两种实现方式:CLI(commandlineinterface);CUI(graphicuserinterface)。比如,当我们启动windows系统,我们想看电影,听音乐,..
分类:
系统相关 时间:
2015-03-15 07:11:21
阅读次数:
275
#import "MJViewController.h"#define kCount 8 //定义宏,程序中经常使用,方便扩展@interface MJViewController () { UIPageControl *_pageControl;}@end@implementation MJVi....
分类:
其他好文 时间:
2015-03-15 00:29:15
阅读次数:
152
Win7的设置方法:1.安装adb驱动,最简单的方法是用豌豆荚或91助手之类的,只要连上一次,就安装成功了.2.打开“设备管理器”,找到里面的mx4设备(Android Composite ADB Interface),右键属性,选“详细信息”标签,“属性”选“硬件ID”,下面会有两行值,我的其中一...
分类:
其他好文 时间:
2015-03-15 00:25:43
阅读次数:
167
一 大图片展示#import "MJViewController.h"@interface MJViewController (){ UIScrollView *_scrollView;//方但全局调用定义成成员变量}@end@implementation MJViewController- (v....
分类:
其他好文 时间:
2015-03-14 23:10:42
阅读次数:
267
下面的是一个用到的快速排序/** * 将发生变化 的东西封闭起来 * @author lsj * */public interface Compare { boolean lessThan (Object lhs ,Object rhs ); boolean lessThanOrEqual(Ob.....
分类:
编程语言 时间:
2015-03-14 21:37:34
阅读次数:
137
Interfaces are named collections of methods signaturespackage mainimport ( "fmt" "math")type geometry interface { area() float64 perim() f...
分类:
其他好文 时间:
2015-03-14 19:48:24
阅读次数:
92
一、适配器设计模式
简单来说,就是通过一个间接类来选择性的来覆写一个接口
interface Window{
public void open() ; // 打开窗口
public void close() ; // 关闭窗口
public void icon() ; // 最小化
public void unicon() ; // 最大化
}
abstract class Windo...
分类:
编程语言 时间:
2015-03-14 18:38:03
阅读次数:
149
先上图:
使用vc++6.0开发
源码:http://download.csdn.net/detail/h1023417614/8501223
//view类的头文件
// game1View.h : interface of the CGame1View class
//
///////////////////////////////////////////////////...
分类:
编程语言 时间:
2015-03-14 17:03:40
阅读次数:
176