不求全面,先留个爪: TNotifyEvent = procedure(Sender:
TObject) of object; TMethod = record Code, Data: Pointer;
end;判断两个按钮的事件是否相等:procedure TForm1.Button5...
分类:
其他好文 时间:
2014-05-12 20:58:45
阅读次数:
432
1:分类的使用场景:想对一个类,扩充一些功能,而又不改变原来类的模型,也不用继承,这时OC中的特有语法:分类可以做到;当然分类也是一个类,也需要声明和实现,声明在.h文件中,实现在.m文件中,格式如下//
声明@interface 类名 (分类名称)@end// 实现@implementation ...
分类:
其他好文 时间:
2014-05-12 03:18:19
阅读次数:
272
Inno setup 常用修改技巧1 、如何让协议许可页面默认选中我同意按钮
[code]procedure InitializeWizard();beginWizardForm.LICENSEACCEPTEDRADIO.Checked
:= true;end;2、自定义安装程序右上角图片大小 [c...
分类:
其他好文 时间:
2014-05-12 02:28:02
阅读次数:
327
基本的注册功能有用户名、密码和密码确认,当然邮箱确认和基本信息填写在高阶的时候完善,现在只完成基本功能。在register.html写如下内容:
{%extends 'main.html'%}
{%block content%}
注册用户名不支持中文
用户名
密码
确认密码
注册
已有帐号,请直接登录
{%end%}
效果图如下...
分类:
其他好文 时间:
2014-05-11 20:37:07
阅读次数:
553
八数码0.0,我又来水博客了。
IDA*算法,A*为曼哈顿距离,判重用康拓展开。
#include
#include
#include
#include
#include
using namespace std;
int a[4][4];
int dx[]={0,0,-1,1};
int dy[]={-1,1,0,0};
char s[]="123804765";
int end[4]...
分类:
其他好文 时间:
2014-05-11 06:20:57
阅读次数:
334
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
iwangzheng.com16:57 [root@a02.cmsapi]$ mysql
-u-p -h10.103.xx.xxWelcome to the MySQL monitor. Commands end with ; or \g.Your
MySQL connection id is 57...
分类:
数据库 时间:
2014-05-10 20:57:56
阅读次数:
441
NS_CLASS_AVAILABLE_IOS(6_0) UIRefreshControl
有个毛病有时会出bug 动画下拉就不动了,这里给出修复处理:@interface UICollectionView
(FixRefreshControlJump)@end#import "UICollectio...
分类:
移动开发 时间:
2014-05-10 07:44:40
阅读次数:
529
在谈这个之前先啰嗦几个概念。基线:书写英语单词时为了规范书写会设有四条线,从上至下第三条就是基线。基线对齐主要是为了两个控件中显示的英文单词的基线对齐,如下所示:
Start:在看API的时候经常会有Start对齐,End对齐,Start对齐主要是为了能够在不同的textDirection(文本排....
分类:
移动开发 时间:
2014-05-10 07:22:00
阅读次数:
440
互联网,即因特网,Internet。互联网是一个世界范围的计算机网络。连接了世界上无数的计算设备,这些计算设备为PC,基于Linux的工作站,服务器servers等等。这些设备根据其作用不同可以被称为主机host或者端系统end system。
端系统通过通信链路communication link和分组交换机packet switch连接到一起。发送数据时,发送端系统将数据分段,并为每段加上首...
分类:
Web程序 时间:
2014-05-09 21:54:28
阅读次数:
401