码迷,mamicode.com
首页 >  
搜索关键字:until    ( 1173个结果
移动设备类
* Victor Stanciu (until v.1.0) * @license http://www.opensource.org/licenses/mit-license.php MIT License * @link Official p...
分类:移动开发   时间:2014-08-08 17:25:47    阅读次数:392
关于Linux中循环语句for,while,until用法的详解
关于Linux中循环语句for,while,until用法的详解for,while,until这些循环结构体在Linux的script中是使用非常多的,所以掌握他们的用法是很必要的,以下是我整理的关于这三个命令的一些用法,希望对需要的人有帮助。一、for循环结构一:for变量in列表;do循环体done结构二:for..
分类:系统相关   时间:2014-08-03 08:03:35    阅读次数:506
LeetCode "Jump Game"
A simulation problem. We simple walk through all reachable items until we cannot proceed.class Solution {public: bool canJump(int A[], int n) { ...
分类:其他好文   时间:2014-08-01 13:16:01    阅读次数:180
Ultra-QuickSort(树状数组 + 离散化)
Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seq...
分类:其他好文   时间:2014-07-30 12:22:33    阅读次数:290
POJ 1102 LC-Display 模拟
Description A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, looking at his new computer, he is a bit disappointed...
分类:其他好文   时间:2014-07-29 15:07:09    阅读次数:335
《学习bash》笔记--流程控制
bash支持下述流程控制结构: if/else:如果某条件为真/假,执行一个执行列表。 for:执行一个语句列表固定次数。 while:当某条件为真时重复执行某语句列表 until:重复执行某语句列表直至某条件为真。 case:依据一个变量取值执行几个语句列表中的一个。 select:允许用户从一个菜单的可选列表中选择一个。...
分类:其他好文   时间:2014-07-29 13:13:17    阅读次数:251
转:RunLoop简单了解
A run loop for a given thread will wait until one or more of its input sources has some data or event, then fire the appropriate input handler(s) to p...
分类:其他好文   时间:2014-07-24 17:15:40    阅读次数:301
linux学习之路之for循环的另一种使用和until循环
之前介绍的for循环的格式形如:forVARNAMEinlist;dostatement...done这种格式的for循环是将list中的每一个依次值赋值给变量VARNAME,然后在执行循环体中的语句。当这个list中的没有值复制给变量VARNAME时,该循环也就结束了。在这里我们在介绍一种类似c语言的for循环语法格式形..
分类:系统相关   时间:2014-07-23 21:10:25    阅读次数:479
JXUST第二赛-C. Investment
John never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhe...
分类:其他好文   时间:2014-07-22 00:26:36    阅读次数:281
L6 Shell
写出以下shell脚本1 判定一个用参数指定的文件是否为可执行,如果不是,则改为可执行#!/bin/bash if [ -x $1 ]then echo "OK"else echo "chmod a+x"chmod a+x $1fi 2 用while和until循环,实现输出某年前9个月月历的效果 ...
分类:其他好文   时间:2014-07-21 08:19:28    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!