public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
Ifactory ifactory =...
分类:
其他好文 时间:
2014-04-30 00:33:52
阅读次数:
504
public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
//工厂模式 Ifactory if...
分类:
其他好文 时间:
2014-04-30 00:13:13
阅读次数:
512
一、max-height:.div-max-height{max-height:270px;_height:expression(this.scrollHeight
> 270 ? "270px" : "auto"); overflow-y:auto}二、min-height.div-min-hei...
分类:
其他好文 时间:
2014-04-29 23:37:26
阅读次数:
489
C++ Primer 5E 有符号和无符号
无符号类型和有符号类型混合运算时,有符号数会被提升至无符号类型,如果其值为负责会产生错误。 int main(){ unsigned int u = 10;
int i = -42; std::cout using Vec = vector>;auto和d...
分类:
编程语言 时间:
2014-04-28 00:19:15
阅读次数:
575
auto_ptr是C++标准库中为了解决资源泄漏的问题提供的一个智能指针类模板。auto_ptr的实现原理是RAII,在构造的时获取资源,在析构的时释放资源。下面通过一个例子掌握auto_ptr的使用和注意事项。事例类的定义:#pragma
once#include using namespace ...
分类:
其他好文 时间:
2014-04-27 21:14:06
阅读次数:
622