#import @interface MyView : UIView@end#import "MyView.h"@implementation MyView-(void) drawRect:(CGRect)rect{ [self drawLine];}#pragma mark - 绘图方法#p...
分类:
其他好文 时间:
2015-02-17 11:37:52
阅读次数:
197
这是一个简单的记事本的窗口过程 1 WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM 2 3 LOCAL winRect:RECT 4 LOCAL editWidth:DWORD 5 LO...
分类:
其他好文 时间:
2015-02-16 20:56:40
阅读次数:
403
CSS clip:rect矩形剪裁功能及一些应用介绍by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=1565一、长话短说CSS中有一个属性叫做clip,为修剪,剪裁之意。配...
分类:
Web程序 时间:
2015-02-15 10:39:10
阅读次数:
239
传送门:Huge Mission题意:给定区间范围[0,N] (2 #include#include#include#define LL long long#define maxn 50010#define lson l,m,rt>1; build(lson); build(rson);...
分类:
其他好文 时间:
2015-02-12 13:54:54
阅读次数:
122
由于做一个预览本地图片的功能,当删除当前图片时自动将scrollview 滚动到下一个图片的视图。用这个方法scrollRectToVisible进行切换,会自动的进入scrollViewDidScroll方法进行刷新 进而达到图片的切换效果。需要注意的是:当传给scrollRectToVisible的rect参数是当前scrollview显示的rect,则不会进入scrollViewDidScr...
分类:
其他好文 时间:
2015-02-11 20:39:03
阅读次数:
159
1 @implementation ICSDropShadowView 2 3 - (void)drawRect:(CGRect)rect 4 { 5 self.layer.shadowOffset = CGSizeZero; 6 self.layer.shadowOpacity...
分类:
其他好文 时间:
2015-02-07 11:35:23
阅读次数:
133
http://acm.hdu.edu.cn/showproblem.php?pid=4328
Problem Description
Mark bought a huge cake, because his friend ray_sun’s birthday is coming. Mark is worried about how to divide the cake si...
分类:
其他好文 时间:
2015-02-06 11:19:49
阅读次数:
173
BillboardTime Limit:8000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionAt the entrance to the university, there is a huge r...
分类:
其他好文 时间:
2015-02-06 10:58:38
阅读次数:
193
rpm -ivh安装的mysql-server mysql-client mysql-devel是不会在/etc下生成my.cnf文件的我们需要把需要的cnf文件复制到etc目录下cp /usr/share/mysql/mysql-huge.cnf /etc/my.cnf根据系统的内存,复制不同的....
分类:
数据库 时间:
2015-02-05 12:59:22
阅读次数:
180
转自http://www.51testing.com/html/76/428076-819055.html 1 网上说要改mysql的my.ini文件。没看到对应的文件啊。看到MySQL Server 5.5目录下有六个ini,分别是my-huge.ini,......,my-template.ini。到mysql的官...
分类:
数据库 时间:
2015-02-04 14:53:17
阅读次数:
311