码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
lua保留n位小数方法
time:2015/04/211. string.format()function GetPreciseDecimal(nNum, n) if type(nNum) ~= "number" then return nNum; end n = n or 0; ...
分类:其他好文   时间:2015-04-21 16:01:33    阅读次数:1984
OC单例模式的实现
SingleClass.m#import @class SingleClass;static SingleClass *instance = nil;@interface SingleClass : NSObject + (instancetype)shareInstance;@end@implem...
分类:其他好文   时间:2015-04-21 12:55:00    阅读次数:99
自定义视图窗口控件
#import<UIKit/UIKit.h>@interfaceLTView:UIView#warning创建需要的属性@property(nonatomic,retain)UILabel*mLabel;@property(nonatomic,retain)UITextField*mTextField;@end#import"LTView.h"@implementationLTView#warning第一步,重写初始化方法-(instancetype)initW..
分类:其他好文   时间:2015-04-21 11:28:04    阅读次数:135
ExtJS form表单常用元素操作
Ext.onReady(function(){Ext.apply(Ext.form.VTypes,{dateRange:function(val,field){varbeginDate=null;varendDate=null;if(field.dateRange){varbeginId=field.dateRange.begin;this.beginField=Ext.getCmp(beginId);varendId=field.dateRange.end;this.endField=Ext.getCmp(..
分类:Web程序   时间:2015-04-21 11:27:40    阅读次数:200
多进程程序设计
创建进程 函数名:fork 函数原型:pid_t fork(void); 函数功能:创建一个子进程 头文件; 返回值:成功:在父进程中返回子进程的pid,在子进程中返回0    失败:-1 #include void main() { fork(); printf("program is end\n"); exit(0); } 运行结果:program is end...
分类:系统相关   时间:2015-04-21 11:24:02    阅读次数:145
poj1083,nyoj220推桌子 贪心
#include //注意两点,桌子可能从编号高的房间推到编号低的房间。如果2 3 ,4 5也是要分两次进行。因为3和4在同一走廊。 #include #include using namespace std; struct node { int star,end; }c[205]; bool cmp(node x,node y) { if(x.star<y.star) return...
分类:其他好文   时间:2015-04-21 11:13:54    阅读次数:122
链表的基本操作之_增删改查
*****end*******...
分类:其他好文   时间:2015-04-21 09:56:21    阅读次数:166
RTC驱动模型分析
①RTC设备层: 设备资源的定义:arch/arm/plat-s3c24xx/devs.c static struct resource s3c_rtc_resource[] = { [0] = { .start = S3C24XX_PA_RTC, .end = S3C24XX_PA_RTC + 0xff, .flags = IORESOURCE_MEM, }, [1] ...
分类:其他好文   时间:2015-04-21 09:41:10    阅读次数:122
NSArray、NSDictionary 转成 JSONString
1.NSArray转换成JSONString //NSArray+JSONString.h@interface NSArray (JSONString)- (NSString *)jsonStringWithPrettyPrint:(BOOL)prettyPrint;@end@implementat...
分类:Web程序   时间:2015-04-21 01:45:20    阅读次数:119
[LeetCode] Remove Nth Node From End of List
Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After remo...
分类:其他好文   时间:2015-04-20 21:00:30    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!