2014-06-01 BaoXinjian一、摘要WebADI原本固定资产导入和日记账导入的一些工具发展而来,因为财务部门人员大多非常熟悉Excel,希望竟可能尽量多的使用Excel工具去进行财务操作而WebADI提供了这样一种可能性通过excel,将资料建立客制化的API或Interface处理,...
分类:
Web程序 时间:
2014-07-22 22:46:57
阅读次数:
328
首先在ViewController.h文件中:#import #import "SRWebSocket.h"//继承SRWebSocket.h,作为登录服务器@interface ViewController : UIViewController//- (IBAction)SaveLogin:(id...
分类:
移动开发 时间:
2014-07-22 22:42:34
阅读次数:
305
创建一个Servlet类最直接的方式是实现javax.servlet.Servlet接口,Servlet接口的定义如下,其中定义了5个方法,Servlet的生命周期就是通过这几个方法体现的: 1 public interface Servlet { 2 public void init(Se...
分类:
其他好文 时间:
2014-07-22 22:40:34
阅读次数:
231
#import "ViewController.h"#import @interface ViewController (){ AVAudioPlayer *play; int index; NSArray *audiolist; NSMutableArray *imagel...
分类:
其他好文 时间:
2014-07-22 00:38:36
阅读次数:
241
二、工厂方法模式
1.动物管理系统的例子
首先,抽象的动物类和具体的动物实现类:
public interface Animal{
public void eat();
}
public class Tiger implements Animal
{
public void eat(){
sysout.out.println("老虎会吃");
};
...
分类:
其他好文 时间:
2014-07-22 00:07:33
阅读次数:
231
继承与UIView,直接调用start和stop事件;@interface ActivityIndicatorView (){ UIImageView *_imageView; UILabel *_label;}@end@implementation ActivityIndicatorView-.....
分类:
移动开发 时间:
2014-07-22 00:06:37
阅读次数:
297
Input / Output
It should also provide an interface between the devices and the rest of the system that is simple and easy to use. 于是乎这里就有了对于硬盘等IO设备的抽象。
5.1 PRINCIPLES OF I/O HARDWARE...
分类:
其他好文 时间:
2014-07-21 23:31:54
阅读次数:
548
package?main
import?(
????"errors"
????"fmt"
)
type?item?struct?{
????Name?string
}
func?(i?item)?String()?string?{
????return?fmt.Sprintf("item?name:?%v",?i.Name)...
分类:
其他好文 时间:
2014-07-21 23:31:04
阅读次数:
310
说到复合与存取,我做完这个例子,感觉就是类的集合,也没什么东西。
主Car类:
#import "Engine.h"
#import "Tire.h"
//汽车
@interface Car : NSObject
{
Engine *engine;
Tire *tires[4];
}
-(Engine *)engine;
-(void)setEngine:(Engine *) ...
分类:
其他好文 时间:
2014-07-21 16:42:12
阅读次数:
230
抽象工场一般都是用反射获取配置文件想要切换的目标(概念不多说,网上一大堆重复概念),本例中用Factory类来实现(以目标数据库为例):1,首先定义共用接口(各种目标类都要实现的) interface IDB { void DataBase(); }2,实现类(目标实...
分类:
其他好文 时间:
2014-07-21 08:26:31
阅读次数:
264