RTTI(Run-Time Type
Information,通过运行时类型信息)程序能够使用基类的指针或引用来检查这些指针或引用所指的对象的实际派生类型.RTTI提供了以下两个非常有用的操作符:(1)typeid操作符,返回指针和引用所指的实际类型。(2)dynamic_cast操作符,将基类类型...
分类:
编程语言 时间:
2014-05-19 15:51:05
阅读次数:
312
public classTest {public Test()
{System.out.println("
构造函数");}@1:静态初始化块static{System.out.println("static{}");}@2:初始化块{System.out.println("{}");}public...
分类:
编程语言 时间:
2014-05-19 15:35:02
阅读次数:
295
As we all know,Coach Gaois a talented chef,
because he is able to cookMdishes in the same time. Tonight he is going to have
a hearty dinner with his g...
分类:
其他好文 时间:
2014-05-19 15:23:53
阅读次数:
272
1 @echo off 2 setlocal enabledelayedexpansion 3
git status||goto :eof 4 5 set "msg=quick push. %date% %time%" 6 if #%1==# (set
/p "msg=commit messa...
分类:
其他好文 时间:
2014-05-19 15:14:16
阅读次数:
402
volatile:java关键字,意为易变的,不稳定的,标识修饰java同步字段,示例:java单利模式public
class ApplicationCache{ private Map attributeMap; // volatile so that JVM
out-of-order...
分类:
编程语言 时间:
2014-05-19 14:56:56
阅读次数:
334
>_____ 2 #include "TicTac.h" 3 #include 4
#include 5 #include 6 using namespace std; 7 CMyApp myApp; 8 /*ofstream
Cout("out.txt"); 9 void CM...
分类:
其他好文 时间:
2014-05-19 14:34:51
阅读次数:
430
域和静态方法不具有多态性:public class Test3 { public static
void main(String[] args) { Super sup = new Sub(); System.out.println(sup.field);
System.out.println...
分类:
其他好文 时间:
2014-05-19 14:28:59
阅读次数:
314
思路:知道要用DP做,但是一开始思路是错的。后来参考了http://blog.csdn.net/pickless/article/details/12034365才意识到可以在整个区间的每一点切开,然后分别计算左子区间和右子区间的最大值,然后再用O(n)时间找到整个区间的最大值。看来以后碰到与2相关...
分类:
其他好文 时间:
2014-05-19 14:13:38
阅读次数:
286
1. 内置九大对象之out 下载图片2. JSP输出表达式 JSP中出现大量脚本3.
response.getWriter() null 974. response.getOutputStream() 没有任何的数据过滤5.
默认使用HTMLFilter进行数据的过滤 6. EL 主要是和...
分类:
Web程序 时间:
2014-05-19 14:09:40
阅读次数:
260
1、时标 时标(Time
Scale)就是标度时间的方法。在时间的标度上,存在着两个相互独立的需求:一方面,我们希望时间标度能与地球的自转相吻合,可以称作天文学需求;另一
方面,我们要求时间标度的单位是精确的,便于大家获得准确的时间。由于地球自转的不均匀性,从这两个需求出发制定的时标会有细微的差异。...
分类:
其他好文 时间:
2014-05-19 13:36:46
阅读次数:
293