码迷,mamicode.com
首页 >  
搜索关键字:second    ( 4896个结果
Dialog&&Toast&&Menu
package com.example.second; import java.util.zip.Inflater; import android.support.v7.app.ActionBarActivity;import android.app.AlertDialog;import andro ...
分类:其他好文   时间:2016-03-26 13:59:08    阅读次数:244
menu&&Toas简单使用
package com.example.second; import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.view.Gravity;import android.view.M ...
分类:其他好文   时间:2016-03-26 12:11:00    阅读次数:155
重复10个1~60顺序且不重复的随机数
$flag=1; for($i=0;$i<10;$i++){ $data[‘mobile‘]=$evaluate_mobile; //随机时间 $second=rand($flag,6*($i+1));//重复10个1~60顺序且不重复的随机数 $flag=$second+1;//加1是未免与上一结果重复 $data[‘second‘]=$second; $result[]=$data; }
分类:其他好文   时间:2016-03-23 23:54:15    阅读次数:381
C注释转换到C++注释项目
#define_CRT_SECURE_NO_WARNINGS1#include"CommentConvert.h"StateTypestate;voidDoNullState(FILE*read,FILE*write){intfirst=fgetc(read);intsecond=0;switch(first){case‘/‘:second=fgetc(read);if(second==‘*‘){fputc(first,write);fputc(‘/‘,write);state=C_STATE;}elseif..
分类:编程语言   时间:2016-03-21 01:49:24    阅读次数:293
319. Bulb Switcher
题目: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle ev
分类:其他好文   时间:2016-03-21 01:44:18    阅读次数:196
linux 使用笔记6
恢复内容开始 1、内容追加 把一个文件的内容追加到另一个文件中: cat first.txt >> second.txt//追加到second.txt文件的末端 cat first.txt > second.txt//覆盖second.txt文件中的内容 2、查看头,尾等 查看头: head -n
分类:系统相关   时间:2016-03-17 16:25:43    阅读次数:181
Effective Java Second Edition --- Builder Pattern
    如果类的构造器或者静态工厂中有多个参数,设计这种类时,Builder模式是一种不错的选择,特别是当大多数参数是可选的时候。 与使用传统的重载构造函数模式相比,使用Builder模式的客户端代码更易于阅读和编写,构造器也比javabeens更加安全。 代码如下: main方法:  
分类:编程语言   时间:2016-03-14 11:50:19    阅读次数:114
第二次的作业
1. First program doesn't exist a state whose i = 0. Second program can only return first 0 in x. 2. x = null Expected = Null PointerException    x = n
分类:其他好文   时间:2016-03-14 00:16:00    阅读次数:225
UVa 10603 Fill [暴力枚举、路径搜索]
10603 Fill There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The rst and the second j
分类:其他好文   时间:2016-03-11 20:38:30    阅读次数:184
spark-shell 执行脚本并传入参数
使用方法: ./spark-script.sh your_file.scala first_arg second_arg third_arg 脚本: scala_file=$1 shift 1 arguments=$@ #set +o posix # to enable process substi
分类:系统相关   时间:2016-03-11 14:10:19    阅读次数:813
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!