上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 54 下一页
摘要: VS: /// + EnterEclipse: /** + Enter 阅读全文
posted @ 2013-06-06 11:08 Master HaKu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/blacklin520/article/details/6854163 阅读全文
posted @ 2013-06-04 16:50 Master HaKu 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1. Run the shell $ sh script.sh # Assuming script is in the current directory. Or: $ sh /home/path/script.sh # Using full path of script.sh. #讲脚本改为可执行模式 $ chmod a+x script.sh $ ./script.sh #./ represents the current directory Or: $ /home/path/script.sh # Full path of the script is used 阅读全文
posted @ 2013-04-25 14:39 Master HaKu 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 自定义类如下:import mathclass Circle: # Construct a circle object def __init__(self, radius = 1): self.radius = radius def getPerimeter(self): return 2 * self.radius * math.pi def getArea(self): return self.radius * self.radius * math.pi def setRadius(self, ... 阅读全文
posted @ 2013-04-22 17:54 Master HaKu 阅读(11902) 评论(0) 推荐(0) 编辑
摘要: 1. Strings1) 简单字符串NSString *aString = @"this is a string";NSString *anotherString = @"and this is another one";2) 对象初始化NSString *aString = [[NSString alloc] initWithString:@"some string literal"];NSString *aString = [NSString stringWithString:@"some string literal& 阅读全文
posted @ 2013-04-02 18:06 Master HaKu 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1. Strings1) 简单字符串NSString *aString = @"this is a string";NSString *anotherString = @"and this is another one";2) 对象初始化NSString *aString = [[NSString alloc] initWithString:@"some string literal"];NSString *aString = [NSString stringWithString:@"some string literal& 阅读全文
posted @ 2013-04-02 18:03 Master HaKu 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h>// --------------------------------------------------@interface Tire : NSObject@end // Tire@implementation Tire- (NSString *) description{ return (@"I am a tire. I last a while");} // description@end // Tire// ----------------------------------------- 阅读全文
posted @ 2013-04-02 16:43 Master HaKu 阅读(285) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h>// --------------------------------------------------// constants for the different kinds of shapes and their colorstypedef enum { kRedColor, kGreenColor, kBlueColor} ShapeColor;// --------------------------------------------------// Shape bounding rectangle... 阅读全文
posted @ 2013-04-02 15:44 Master HaKu 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1.In Xcode, choose Product-> Edit Scheme and then click the Arguments tab2As shown in the following screen shot, click the plus sign in the Arguments Passed On Launch section, andtype the launch argument—in this case, the path to the words.txt file 阅读全文
posted @ 2013-04-02 14:31 Master HaKu 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 按顺序依次为 秒(0~59) 分钟(0~59) 小时(0~23) 天(月)(0~31,但是你需要考虑你月的天数)月(0~11) 天(星期)(1~7 1=SUN 或 SUN,MON,TUE,WED,THU,FRI,SAT) 7.年份(1970-2099) 其中每个元素可以是一个值(如6),一个连续区间(9-12),一个间隔时间(8-18/4)(/表示每隔4小时),一个列表(1,3,5),通配符。由于"月份中的日期"和"星期中的日期"这两个元素互斥的,必须要对其中一个设置?. 0 0 10,14,16 * * ? 每天上午10点,下午2点,4点 0 0/30 阅读全文
posted @ 2013-03-29 12:46 Master HaKu 阅读(232) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 54 下一页