码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
堆排序
堆排序利用到完全二叉树的有关知识,时间复杂度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
Toast 用于一个页面有多个提示
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
UICollectionVIew的简单使用
@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
JAVA设计模式之模板模式
1 public abstract class RefreshBeverage { 2 3 public final void prepareBeverageTemplate(){ 4 5 boilWater(); 6 brew(); ...
分类:编程语言   时间:2015-12-14 18:33:38    阅读次数:161
cmd 运行(打包后的)java程序
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
GCD 大中枢派发 简单应用实例
@interface ViewController (){ UIImageView* iv; UIButton* btn; UILabel* lbl;}@end@implementation ViewController- (void)viewDidLoad { [super viewDid...
分类:其他好文   时间:2015-12-14 18:17:46    阅读次数:123
C#中使用代码动态改变配置文件信息
static void Main(string[] args) { XmlDocument xDoc = new XmlDocument(); xDoc.Load("../../App.config");//加载xml文件 ...
分类:Windows程序   时间:2015-12-14 18:09:23    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!