码迷,mamicode.com
首页 >  
搜索关键字:static    ( 45277个结果
CoreDataManager-Swift版-兼容iOS10以前的版本
1 import UIKit 2 import CoreData 3 4 // coredata管理器 5 class CoreDataManager: NSObject { 6 7 // 单例 8 static let sharedManager:CoreDataManager = CoreDat... ...
分类:移动开发   时间:2016-12-25 17:38:09    阅读次数:231
杨辉三角
1 /** 2 * 杨辉三角 3 * @author chunzai 4 * 5 */ 6 public class Test1 { 7 public static void main(String[] args) { 8 int a[][] = new int[7][]; 9 for(int i=... ...
分类:其他好文   时间:2016-12-25 13:51:03    阅读次数:138
用Java实现菱形的打印输出
import java.util.Scanner; public class dengyao2 { public dengyao2() { super(); } public static void main(String[] args) { System.out.println("请输入菱形的边长 ...
分类:编程语言   时间:2016-12-25 13:38:51    阅读次数:159
linux驱动的分离分层概念
bus_drv_dev模型:功能改写只需改dev硬件代码即可,drv不需改写。 LED例子 下面用一个点亮LED的例子来说明这个分离的的例子: led_dev.c 定义这个平台设备的资源: static struct resource led_resource[] = { [0] = { .star ...
分类:系统相关   时间:2016-12-25 13:35:01    阅读次数:258
希尔排序(java)
package com.sort.shell; public class ShellSort { public static void swap(int[] list, int a, int b){ int temp; temp = list[a]; list[a] = list[b]; list[... ...
分类:编程语言   时间:2016-12-25 11:49:30    阅读次数:253
MACS2 安装与使用
from: http://lwzhanghz.blog.163.com/blog/static/136826369201251783236887/ 1)下载MACS2 下载网址: https://pypi.python.org/pypi/MACS2 $ python setup.py install ...
分类:系统相关   时间:2016-12-25 09:39:19    阅读次数:6773
ubuntu14.04设置静态ip
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地 ...
分类:系统相关   时间:2016-12-25 01:52:54    阅读次数:192
RabbitMQ 声明Queue时的参数们的Power
参数们的Power 在声明队列的时候会有很多的参数 public static QueueDeclareOk QueueDeclare(this IModel model, string queue = "", bool durable = false, bool exclusive = true,... ...
分类:其他好文   时间:2016-12-25 01:47:53    阅读次数:213
在一般处理程序(ashx)中弹出js提示语
在提交form表单时,比如前台是$("form").submit()同步提交的时候,这个是没有回掉函数的,那么我们只能在后台提示,在前台显示,自己作为一个参考吧 public class Script { public static void Alert(string message) { R... ...
分类:Web程序   时间:2016-12-25 01:25:01    阅读次数:232
两个变量交换的四种方法
对于两种变量的交换,我发现四种方法,下面我用Java来演示一下。1.利用第三个变量交换数值,简单的方法。class TestEV//创建一个类{ public static void main(String[]args) { int x =5,y=10; //定义两个变量 int temp = x;... ...
分类:其他好文   时间:2016-12-24 22:55:46    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!