摘要:
//// CCRandom.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCRandom : NSObject {}+ (long)generateRandomNum;+ (NSString *)generateRandomStringByLen:(int)len;@end可能有更新:googlecode链接地址:http://code.google.com/ 阅读全文
摘要:
//// CCRadix.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#include "CCRadix.h"@implementation CCRadix+ (NSString *)get2RadixStr:(unsigned)n{ return [self getRadixStr:n withRadix:2];}+ (NSString *)get8RadixStr:(unsigned)n{ return... 阅读全文
摘要:
//// CCRadix.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#ifndef CC_RADIX_H#define CC_RADIX_Htypedef char SMALL_INT;#ifdef __OBJC__// it used for radix operation@interface CCRadix : NSObject {}+ (NSString *)get2RadixStr:(unsigned)n;+ (NS... 阅读全文
摘要:
//// CCPoint.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPoint.h"#import "CCCommon.h"#import "CCNSNumber.h"@implementation CCPoint- (id)initWithX:(CGFloat)aX withY:(CGFloat)aY{ COMMON_INIT_BEGIN x = aX; y = a... 阅读全文
摘要:
//// CCPoint.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCPoint : NSObject{@public CGFloat x; CGFloat y;}- (id)initWithX:(CGFloat)x withY:(CGFloat)y;+ (id)pointWithX:(CGFloat)aX withY:(CGFl... 阅读全文