码迷,mamicode.com
首页 >  
搜索关键字:main    ( 65088个结果
Xamarin.Android 入门之:Xamarin快速入门
一、 准备工作 1.新建一个项目取名为phoneword 2.在项目创建好之后,让我们展开“Resources”文件夹然后找到并打开该文件夹下的“layout”文件夹,双击main.axml在Android设计器中打开它,这是我们的布局文件。 3.让我们选择“你好世界,请单击我”在设计表面上的按钮, ...
分类:移动开发   时间:2016-08-28 16:30:33    阅读次数:256
三目运算符
表达式1?表达式2:表达式3 其中功能是:如果表达式1为真,则整个表达式的值为“表达式2”,否则为表达式3. 以下代码为求四个数的最大值 #include"stdio.h"#include"conio.h"int main(){int a,b,c,d,max;printf("input your f ...
分类:其他好文   时间:2016-08-28 16:29:43    阅读次数:133
随机数
#include<stdio.h>int a[100];int main(){ int i,j,n,t=0,f; freopen("random.in","r",stdin); freopen("random.out","w",stdout); scanf("%d",&n); for(i=1;i<= ...
分类:其他好文   时间:2016-08-28 16:12:55    阅读次数:107
ParallaxViewPager(顶部带image的viewpager)
MainActivity.java main_activity.xml sliding_tab_view.xml 导入parallaxviewpager.jar ...
分类:其他好文   时间:2016-08-28 16:11:46    阅读次数:399
java学习笔记 死锁
在锁对象期间,会产生一个问题就是死锁,双方都在等在对方释放资源 范例: public class Test { public static void main(String[] args) throws Exception { MyThread mt1 = new MyThread(); MyThr... ...
分类:编程语言   时间:2016-08-28 01:14:13    阅读次数:214
扩展方法 1 简单的string扩展方法
1 static class Program 2 { 3 static void Main(string[] args) 4 { 5 6 Test2(); 7 Console.ReadKey(); 8 } 9 10 public static string FormatWith(this strin ...
分类:其他好文   时间:2016-08-27 23:15:27    阅读次数:157
[iOS]浅谈NSRunloop工作原理和相关应用
一. 认识NSRunloop 1.1 NSRunloop与程序运行 那么具体什么是NSRunLoop呢?其实NSRunLoop的本质是一个消息机制的处理模式。让我们首先来看一下程序的入口——main.m文件,一个ios程序启动后,只有短短的十行代码居然能保持整个应用程序一直运行而没有退出,是不是有点 ...
分类:移动开发   时间:2016-08-27 22:10:41    阅读次数:398
子类实例化,父类构造器中被调用被子类重写的方法,会执行父类还是子类的呢?
public class Test001 { public static void main(String[] args) { new Child(); } }class Father{ private String name = "f"; public Father(){ tell(); } pu ...
分类:其他好文   时间:2016-08-27 20:42:34    阅读次数:427
明明的随机数
#include<stdio.h>int main(){ int a[1000],n,t; freopen("random.in","r",stdin); freopen("random.out","w",stdout); scanf("%d",&n); for(int i=0;i<=n-1;i++ ...
分类:其他好文   时间:2016-08-27 20:36:28    阅读次数:166
Android使用OkHttp实现带进度的上传下载
先贴上MainActivity.java 紧接着就是布局文件了 layout_main.xml 另外别忘了给配置清单文件添加权限 还有一个就是添加依赖了 源代码地址:https://github.com/newcaoguo/CoreProgress.git ...
分类:移动开发   时间:2016-08-27 18:11:53    阅读次数:556
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!