效果图:工程图:注意:需要加入的第三方Toast.RootViewController.m//点击任何处,弹出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.view makeToast:@"Th...
分类:
其他好文 时间:
2014-10-27 17:05:16
阅读次数:
248
典型的用栈(stack)结构解决问题的例子class Solution: def isPair(self,s1,s2): if (s1=='(' and s2==')')or (s2=='(' and s1==')'): return True ...
分类:
其他好文 时间:
2014-10-27 14:17:47
阅读次数:
186
效果图:工程目录:此代码需要加第三方库,MLTableAlert.RootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showTableA...
分类:
其他好文 时间:
2014-10-27 14:14:54
阅读次数:
152
导入FileUpload和common-io的Jar包
1、Test.jsp:
self/testFileUpload.do" method="post" enctype="multipart/form-data">
2、controller:
@RequestMapping(value="/testFileUpload...
分类:
编程语言 时间:
2014-10-27 12:47:59
阅读次数:
171
效果图:工程图:此工程要引入第三方库DXAlertViewRootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self twoBtnClicked]...
分类:
其他好文 时间:
2014-10-27 12:30:42
阅读次数:
223
效果图:工程图:注意,此工程需要导入第三方库STAlertViewRootViewController.m//点击任何处,弹出按钮-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showTextFie...
分类:
其他好文 时间:
2014-10-27 12:15:46
阅读次数:
193
name=$name; } //入学,静态方法无法操作非静态变量,因为静态方法(变量)是属于类,而非静态的成员变量时属于对象的 static function enterSchool($ifee) { self::$fee+=$ifee; } } $...
分类:
Web程序 时间:
2014-10-26 22:41:57
阅读次数:
284
class Animal: def __init__(self, name): # Constructor of the class self.name = name def talk(self): # Abstract method, de...
分类:
编程语言 时间:
2014-10-26 21:07:49
阅读次数:
281
最近在使用scheduler时发现如下问题
调用:
local scheduler = require(cc.PACKAGE_NAME .. ".scheduler")
function MainScene:ctor()
self.player_:pos(self.player_:getContentSize().width / 2 , display.height / ...
分类:
其他好文 时间:
2014-10-26 18:26:54
阅读次数:
140
前序遍历:void search(int x) cout<<a[x].self; if(a[x].left!=-1)search(a[x].left); if(a[x].right!=-1) search(a[x].right);中序遍历:
分类:
其他好文 时间:
2014-10-26 18:14:10
阅读次数:
219