private void getFiles(String path, List list) { File dir = new File(path); if (dir.isFile()) { list.add(dir); } el...
分类:
其他好文 时间:
2015-09-23 18:52:58
阅读次数:
140
1 #include 2 #include 3 #include 4 using namespace std; 5 int a[31],n; 6 7 void rev(int ct) { 8 printf("%d ", n-ct); 9 for (int i=0;imaxn)39...
分类:
其他好文 时间:
2015-09-23 18:45:40
阅读次数:
147
1. 设计一个类(不妨叫做A ),实现对一维数组的指定范围内的元素相加运算。package vvv;import java.util.Scanner;public class A { public static void main(String[]args) { ...
分类:
其他好文 时间:
2015-09-23 18:45:01
阅读次数:
202
#pragma mark 键盘弹起操作- (void)keyboardWillShow:(NSNotification *)notification{ NSDictionary *info = notification.userInfo; kbSize = [[info objectForKey:U...
分类:
移动开发 时间:
2015-09-23 18:43:35
阅读次数:
174
public abstract class FillWorkBook where TModel : struct where Chart : new() where Chart : CreateExcelBase{ public void FillDataToWorkbook...
分类:
其他好文 时间:
2015-09-23 18:42:14
阅读次数:
184
对待java中方法参数个数不确定的解决方法,一是用到重载,另就是用到可变长的参数列表来解决,2者呈互补的关系. 这里主要讲第二种方法的实现: package 第六单元;public class VarArgsDemo { public static void main(String...
分类:
其他好文 时间:
2015-09-23 18:37:52
阅读次数:
159
递归解决 汉诺塔 1 class Han{ 2 int num; 3 int steps; 4 Han(int num){ 5 this.num=num; 6 } 7 void total() 8 { 9 System....
分类:
其他好文 时间:
2015-09-23 18:34:06
阅读次数:
119
ios layout机制相关方法 - (CGSize)sizeThatFits:(CGSize)size - (void)sizeToFit - (void)layoutSubviews - (void)layoutIfNeeded - (void)setNeedsLayout - (void)setNeedsDisplay - (void)drawRect ????在...
分类:
其他好文 时间:
2015-09-23 17:27:22
阅读次数:
361
@interfaceViewController(){CLLocationManager*manager;}@end@implementationViewController-(void)viewDidLoad{[superviewDidLoad];//Doanyadditionalsetupafterloadingtheview,typicallyfromanib.manager=[[CLLocationManageralloc]init];[managerrequestAlwaysAuthorizatio..
分类:
其他好文 时间:
2015-09-23 17:11:46
阅读次数:
132
方法一:?protected void Button1_Click(object sender, EventArgs e){//关闭页面--弹出提示ClientScript.RegisterStartupScript(Page.GetType(), "", ?"");//关闭页面--不弹出提示Cli...