码迷,mamicode.com
首页 >  
搜索关键字:if循环shell case until    ( 11788个结果
static inner class 什么时候被加载
一直认为在加载outer class 的同时也会加载inner class 并且完成静态变量和代码块的初始化,今天在维基百科上面看到“The static class definitionLazyHolderwithin it isnotinitialized until the JVM deter...
分类:其他好文   时间:2014-05-16 19:57:41    阅读次数:316
Verilog之case语句
verilog设计进阶 时间:2014年5月6日星期二 主要收获: 1. 学会使用case语句; 2. 学会使用随机函数$random。 $random: 1. 函数说明:$random函数调用时返回一个32位的随机数,它是一个带符号的整形数。 2. 产生0~59之间的随机数的例子: reg[23:...
分类:其他好文   时间:2014-05-16 07:14:30    阅读次数:327
代码艺术 CountDownTimer
/** * Schedule a countdown until a time in the future, with regular notifications on intervals along the way. * * Example of showing a 30 second count...
分类:其他好文   时间:2014-05-16 04:21:02    阅读次数:311
poj3469(最大流最小割问题)
题目链接:http://poj.org/problem?id=3469 Dual Core CPU Time Limit: 15000MS   Memory Limit: 131072K Total Submissions: 18147   Accepted: 7833 Case Time Limit: 5000MS ...
分类:其他好文   时间:2014-05-15 06:23:05    阅读次数:271
Leetcode:Climbing Stairs 斐波那契数
戳我去解题You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you ...
分类:其他好文   时间:2014-05-15 01:55:06    阅读次数:251
switch语句
switch 语句int x = 10switch(x) case 1:print(“sfsd”)breakcase 2:print(“dsdf”)breakdefaultprint(“right”)break
分类:其他好文   时间:2014-05-14 23:47:11    阅读次数:263
60行R++代码实现Lisp解释器
还没有处理lambda、上下文等,有待完善。 main { for putsl(eval(getsl)) } rstr eval(rstr s) { s=tokenize(s) v=s.split(' ') if v.get(0)!='(' return v.get(0) next=find(v.sub(2))+2 switch v.get(1) case '+' r...
分类:其他好文   时间:2014-05-14 15:32:34    阅读次数:323
POJ 2823 单调队列
Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 36469   Accepted: 10803 Case Time Limit: 5000MS Description An array of size n ≤ 106 is gi...
分类:其他好文   时间:2014-05-13 15:36:47    阅读次数:357
poj2104(主席树)
K-th Number Time Limit: 20000MS   Memory Limit: 65536K Total Submissions: 35704   Accepted: 11396 Case Time Limit: 2000MS Description You are working for Macrohard com...
分类:其他好文   时间:2014-05-13 14:07:41    阅读次数:203
JS兼容方式获取浏览器的宽度
//need to wait until onload so body is available window.onload = function(){ function getWindowWidth(){ if (window.innerWidth){ ret...
分类:Web程序   时间:2014-05-13 07:37:26    阅读次数:394
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!