Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-11-04 14:28:59
阅读次数:
179
第五章 servlet容器
第 5 章讨论 container 模块。container 指的是 org.apache.catalina.Container 接口,有4 种类型的 container:engine, host, context 和 wrapper。这章提供了两个工作于 context 和wrapper 的程序。
容器共分四类,类图如下:
一个wrapper就是一个serv...
分类:
其他好文 时间:
2014-11-03 19:31:04
阅读次数:
289
练习3:(1)创建一个带默认构造器(即无参构造器)的类,在构造器中打印一条消息。为这个类创建一个对象。P116
public class Test{
public Test(){
System.out.println("Hello Word");
}
public static void main(String[] args) {
new Test();
}
/**...
分类:
编程语言 时间:
2014-11-03 10:11:49
阅读次数:
188
### 比例 > 2x = @2x > Retina 4 = 568h@2x > Retina HD 4.7 = @2x > Retina HD 5.5 = @3x ### iOS图标 iPhone 6 Plus @3x 180 x 180 iPhone 6 && 5 @2x 120 x 120 iPhone 4s @2x 120 x 120 iPad && mini2+ @2x 1...
分类:
移动开发 时间:
2014-11-03 01:38:32
阅读次数:
263
最近学习《C Primer Plus》位操作部分,结合书上的编程实例来巩固这部分知识点。 1 //使用位运算显示二进制数 2 #include 3 char *itobs( int, char*); //integer to binary string 4 vo...
分类:
其他好文 时间:
2014-11-02 22:32:34
阅读次数:
453
今天在做练习9.22时,始终出现segments fault。最后才发现原来是自己对“容器insert之后迭代器会失效”的理解不够透彻。题目如下:假定iv是一个int的vector,下面的程序存在什么错误?你将如何修改?1 auto iter = iv.begin();2 auto mid = iv...
分类:
编程语言 时间:
2014-11-02 21:00:22
阅读次数:
216
Chapter 1.11. 每个C++程序都必须有且只能有一个main函数,main函数的返回类型必须是int。操作系统通过调用main函数来运行C++程序。2. 一个函数的定义包含四部分:返回类型、函数名、形参列表以及函数体。3. 当return语句包含一个值时,此返回值的类型必须与函数的返回类型...
分类:
编程语言 时间:
2014-11-02 20:54:22
阅读次数:
261
A problem is easy描述When Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of d...
分类:
其他好文 时间:
2014-11-02 17:57:15
阅读次数:
141
??目前主流iOS设备的分辨率: 2048*1536: iPad 3,4,Air,iPad Mini Retina 1024*768: iPad 2 1920*1080: iPhone 6 Plus 1334*750: iPhone6 1136*640: iphone5s,iphone5c,iphone5,ipod touch6 !960*640: iPhone4,...
分类:
移动开发 时间:
2014-11-02 16:42:15
阅读次数:
166
C++primer(第五版)第二章相关总结包含基本数据类型的最小尺寸和类型所占字节数和最大值和最小值;C++11特性的基本变量类型:long long类型,nullptr常量(空指针),constexpr变量,auto类型指示符,decltype类型指示符;C++primer(第五版)第二章部分易错习题的讲解与提示;有关基本类型与c语言的一些细节性差别的感悟!...
分类:
编程语言 时间:
2014-11-02 09:32:11
阅读次数:
257