代码文件:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls;type TForm1 = cla...
分类:
其他好文 时间:
2014-07-16 19:23:58
阅读次数:
277
分类目录 {dede:channel type='top' row='8' currentstyle="~typename~ "} [field:typename/] ([field:id runphp='yes']global $dsql;$sql='SE...
分类:
其他好文 时间:
2014-07-16 18:42:47
阅读次数:
206
在线语音合成的使用方法:首先下载相关的sdk,这个网址里有多种版本,我选择的Android。http://open.voicecloud.cn/index.php/services/voicebase?type=tts&tab_index=1需要注意的是,最好先创建应用,审核通过后会返回一个APPI...
分类:
移动开发 时间:
2014-07-16 18:18:33
阅读次数:
456
A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tuples are a lot like lists. The imp...
分类:
其他好文 时间:
2014-07-16 18:17:44
阅读次数:
213
--创建表CREATE [GLOBAL TEMPORARY] TABLE table_name(coloum_name TYPE [CONSTRAINT constraint_def DEFAULT default_exp][,coloum_name TYPE [CONSTRAINT const.....
分类:
数据库 时间:
2014-07-16 17:50:53
阅读次数:
394
1e.Row.RowType == DataControlRowType.DataRow的意思e.Row.RowType 是指当前行的类型DataControlRowType 是GridView的行的类型集合 其中的DataRow是数据绑定行这个判断语句的意思就是判断当前行是不是数据绑定行2这个.....
分类:
其他好文 时间:
2014-07-16 17:50:06
阅读次数:
211
关于raw type刚好在预习龙书,就把官网上提供的那份java写的前端代码拖了下来看看。导入eclipse,发现有一堆warning,其中一个是Reference to generic type Hashtable should be parameterized。google之,发现了一篇不错的讲...
分类:
编程语言 时间:
2014-07-16 17:38:02
阅读次数:
286
作用域指针
当我们并不打算复制智能指针,只是想保证被分配的资源将被正确地回收,可以采用一种简单得多的解决方案:作用域指针。如下示例代码:
template
class ScopedPtr
{
public:
explicit ScopedPtr(T* p = NULL)
:ptr_(p)
{
}
ScopedPtr& operator=(T* p)
{
if(ptr_ !...
分类:
其他好文 时间:
2014-07-16 11:45:30
阅读次数:
311
C++11添加了一项名为lambda表达式的新功能.通过这项功能能编写内嵌的匿名函数,而不必编写独立函数或函数对象,使得代码更加理解.
lambda表达式包含以下部分.
[capture_block](parameters) mutable exception_specification->return_type {body}
现在分析各个部分的内容:
(capture_block)捕捉块...
分类:
编程语言 时间:
2014-07-16 11:30:48
阅读次数:
210
有关js判断undefined类型,使用typeof方法,typeof 返回的是字符串,其中就有一个是undefined。js判断undefined类型if (reValue== undefined){alert("undefined");}发现判断不出来,最后查了下资料要用typeof方法:if ...
分类:
Web程序 时间:
2014-07-16 08:34:23
阅读次数:
439