QObject 类是Qt 所有类的基类。 QObject是Qt对象模型的核心。这个模型的中心要素就是一种强大的叫做信号与槽无缝对象沟通机制。你可以用 connect()函数来把一个信号连接到槽,也可以用disconnect()函数来破坏这个连接。为了避免永无止境的通知循环,你可以用blockS...
分类:
其他好文 时间:
2014-10-12 05:08:57
阅读次数:
128
说明:本人用的win8 系统装Code::Blocks练习OC。
1.类的声明和实现的关系图:
@interface就好像暴露在外面的时钟表面
@implementation就好像隐藏在时钟内部的构造实现
2.语法中要注意的地方
(1).成员变量不能在{}中进行初始化、不能被直接拿出去访问
(2).方法不能当做函数一样调用
(3).成员变量\方法不能用stat...
分类:
其他好文 时间:
2014-10-03 14:23:04
阅读次数:
171
Blocks就是存放一些可以被执行的代码的块,通常用do...end 或者 {}表示例如:[1, 2, 3].each do |num| puts numend[1, 2, 3].each { |num| puts num }
分类:
其他好文 时间:
2014-10-02 14:35:32
阅读次数:
151
从左边开始染色,到第$i$个方块为止,红绿都是偶数的方案数为$a_i$,红绿恰有一个是偶数的方案为$b_i$,红绿都是奇数的方案为$c_i$,从而有如下状态转移方程:$a_{i+1} = 2 \times a_i + b_i$$b_{i+1} = 2 \times a_i + 2 \times b_...
分类:
其他好文 时间:
2014-09-29 22:34:11
阅读次数:
234
Blocks
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 4250
Accepted: 1704
Description
Some of you may have played a game called 'Blocks'. There are n bloc...
分类:
其他好文 时间:
2014-09-28 22:22:45
阅读次数:
396
这篇文章主要介绍了相比于python2.6,python3.0的新特性。更详细的介绍请参见python3.0的文档。Common Stumbling Blocks本段简单的列出容易使人出错的变动。print语句被print()函数取代了,可以使用关键字参数来替代老的print特殊语法。例如:Old:...
分类:
编程语言 时间:
2014-09-27 00:18:29
阅读次数:
337
The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document.A DTD defines the document structure with a ...
分类:
其他好文 时间:
2014-09-25 03:36:38
阅读次数:
216
The main building blocks of both XML and HTML documents are elements.The Building Blocks of XML DocumentsSeen from a DTD point of view(从dtd的角度来看), all...
分类:
其他好文 时间:
2014-09-25 02:51:38
阅读次数:
305
A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements...
分类:
其他好文 时间:
2014-09-25 02:34:48
阅读次数:
286
在CentOS安装CMake http://www.linuxidc.com/Linux/2014-02/97363.htm
如何在CentOS上安装并汉化Code::Blocks http://www.linuxidc.com/Linux/2014-02/97364.htm
1、先装个wget(切换到root下安装)
yum install -y wget
2、上官网...
分类:
编程语言 时间:
2014-09-24 19:45:07
阅读次数:
370