堆排序利用到完全二叉树的有关知识,时间复杂度O(nlogn)#include#include#include#includeusing namespace std;const int MAX_A = 100009;//使1到n元素为最大堆void Adjust(int a[],int i,int n...
分类:
编程语言 时间:
2015-12-14 20:58:06
阅读次数:
143
private Toast mToast; 2 初始化 mToast = Toast.makeText(this,"",Toast.LENGTH_SHORT); 3 方法 private void showTip(final String str) { mToast.setText(str); mT...
分类:
其他好文 时间:
2015-12-14 20:51:48
阅读次数:
127
//微博弹性动画- (void)moveInAnimation{ UIView *centerV = [[UIView alloc] initWithFrame:CGRectMake(0, 200, 300, 100)]; [self.view addSubview:centerV]; ...
分类:
其他好文 时间:
2015-12-14 19:02:05
阅读次数:
143
@property (nonatomic,strong) UICollectionView *collectionView;- (void)createCollectionView { //创建布局对象 UICollectionViewFlowLayout *flowLayout = [[UI...
分类:
其他好文 时间:
2015-12-14 18:59:04
阅读次数:
128
//// 九宫格布局.h// IOS笔记-(void)createUI{ NSArray *titles = @[@"我的设置",@"我的关注",@"我的账户",@"我的收藏",@"我的下载",@"我的评论",@"我的帮助",@"我的应用"]; NSArray *images = @[@"sett....
分类:
其他好文 时间:
2015-12-14 18:53:06
阅读次数:
245
1.插入 Java代码12345678910111213141516public class ZoomOutTranformer extends ABaseTransformer { @Override protected void onTransform(View view, float posi...
分类:
其他好文 时间:
2015-12-14 18:49:23
阅读次数:
145
1 public abstract class RefreshBeverage { 2 3 public final void prepareBeverageTemplate(){ 4 5 boilWater(); 6 brew(); ...
分类:
编程语言 时间:
2015-12-14 18:33:38
阅读次数:
161
package cn.imeixi.chapter1.exer;public class Exer10PrintArgs { public static void main(String[] args) { for(int i = 0;i < args.length;i++){ ...
分类:
编程语言 时间:
2015-12-14 18:25:50
阅读次数:
165
@interface ViewController (){ UIImageView* iv; UIButton* btn; UILabel* lbl;}@end@implementation ViewController- (void)viewDidLoad { [super viewDid...
分类:
其他好文 时间:
2015-12-14 18:17:46
阅读次数:
123
static void Main(string[] args) { XmlDocument xDoc = new XmlDocument(); xDoc.Load("../../App.config");//加载xml文件 ...