TP所有单独的函数,除了两个用来生成项目的buildAppDir之类的,其余都在框架目录/Common/functions.php这个文件里。A函数(基本是Action的简写) A函数是用来实例化我们的Action类的,例如我们的程序有2个Action分别是IndexAction和TestActi....
分类:
Web程序 时间:
2014-07-28 15:01:53
阅读次数:
309
定义: 软件中的对象(类,模块,函数等等)应该对于扩展是开放的,但是对于修改是封闭的。个人理解: 开闭原则通俗的来说就是软件系统中包含的各种组件,例如模块(Modules)、类(Classes)以及功能(Functions)等等,应该在不修改现有代码的基础上,引入新功能。开闭原则中“开”,是指对于组...
分类:
其他好文 时间:
2014-07-27 21:34:35
阅读次数:
211
Description
The Eastowner city is perpetually haunted with water supply shortages, so in order to remedy this problem a new water-pipe has been built. Builders started the pipe from both ends simul...
分类:
其他好文 时间:
2014-07-26 17:18:12
阅读次数:
313
今天进行数据库文件导入的时候遇到了这样的一个问题:The'InnoDB'feature is disabled;you need MySQL built with 'InnoDB' to have it working。把问题往百度里一粘贴,马上就可以搜到了解决办法,而且十分快速有效。以下是大牛们在...
分类:
数据库 时间:
2014-07-26 05:43:47
阅读次数:
236
Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFarmer John has built a new long barn, with N (2 #include #.....
分类:
其他好文 时间:
2014-07-26 00:23:36
阅读次数:
286
In Unity scripting, there are a number of event functions that get executed in a predetermined order as a script executes. This execution order is des...
分类:
其他好文 时间:
2014-07-25 23:53:10
阅读次数:
449
stl提供了三个最基本的容器:vector,list,deque。vector和built-in数组类似,它拥有一段连续的内存空间,并且起始地址不变,因此它能非常好的支持随即存取,即[]操作符,但由于它的内存空间是连续的,所以在中间进行插入和删除会造成内存块的拷贝,另外,当该数组后的内存空间不够时,...
分类:
其他好文 时间:
2014-07-24 22:38:33
阅读次数:
198
DescriptionJapan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the ...
分类:
其他好文 时间:
2014-07-24 21:43:52
阅读次数:
270
转换和继承,虚函数
Understanding conversions between base and derived classes is essential to
understanding how object-oriented programming works in C++.
理解基类和派生类之间的转换是必不可少的 理解面向对象编程在。
Like built-i...
分类:
编程语言 时间:
2014-07-24 10:26:53
阅读次数:
488
一 Words1 gobble up 吞并 e.g. Banc One of Ochio has built an empire in the midwest by gobbling up smaller banks.俄亥俄州第一银行通过兼并一些小银行成为中西部地区的巨头2 gobble up耗费 ...
分类:
其他好文 时间:
2014-07-24 10:02:04
阅读次数:
191