码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
自己写的一段重试代码
public class TestRetry { public static void main(String[] args) { retry(5); } private static void retry(int maxCount) { int count = 0; boolean result = false; do { count++; System....
分类:其他好文   时间:2014-06-03 05:10:35    阅读次数:179
Be Happier: 10 Things to Stop Doing Right Now
BY Jeff Haden  @jeff_haden                     Sometimes the route to happiness depends more on what you don't do....
分类:移动开发   时间:2014-06-02 23:17:28    阅读次数:525
Report_SRW工具的基本用法(概念)
2014-05-31 BaoXinjian In Capgemini1. SRW的主要作用控制报表的运行 -> srw.program_abort在运行时输出信息 -> srw.message执行DDL语句 -> srw.do_sql调用用户出口 -> srw.reference动态地设置格式 ->...
分类:其他好文   时间:2014-06-02 20:00:34    阅读次数:332
java-第五章-do{}while()升级菜单切换
importjava.util.Scanner; publicclassA04{ publicstaticvoidmain(String[]args){ //TODOAuto-generatedmethodstub Scannerinput=newScanner(System.in); System.out.println("欢迎使用MyShopPing管理系统"); System.out.println("\n********************************..
分类:编程语言   时间:2014-06-02 14:44:48    阅读次数:378
JSOI2008最大数(线段树)
注意到数列只增不减,而题目中又明确说道my then exit(x) else exit(y); end;procedure build(x,y,k:longint); var mid:longint; begin with t[k] do begin l:=x;r:=y; if ...
分类:Web程序   时间:2014-06-02 14:01:28    阅读次数:247
LeetCode: String to Interger (atoi) 题解
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2014-06-02 08:51:43    阅读次数:233
【leetcode】Valid Sudoku
问题: 在Sudoku Solver 中说道,会有一些提示解,这里就是验证下给定的提示解是否合法,即已经填加的数是否满足要求的三个条件。 bool isValidSudoku(vector > &board) { const int M = 9;//9 * 9 const int hash_len = 60;//'0' = 48 + 10 const char do...
分类:其他好文   时间:2014-06-02 02:31:45    阅读次数:279
lua 语句学习
就如同C里的if else,while,do,repeat;就看lua里怎么用: 1、首先看if else t = {1,2,3} local i = 1 if t[i] and t[i] % 2 == 0 then print("even") else print("odd") end lua木有C里的&&,而是and来表示;if 之后跟表达式,之后要更个then 最后语句结束都要...
分类:其他好文   时间:2014-06-01 18:13:48    阅读次数:567
LeetCode: Reverse Linked List II [092]
【题目】 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length of list. 【题意】 ...
分类:其他好文   时间:2014-06-01 15:08:34    阅读次数:237
LeetCode: Binary Tree Inorder Traversal [094]
【题目】 Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Recursive solution is trivial, could you do it iteratively? confused what "{1,#,2...
分类:其他好文   时间:2014-06-01 13:01:23    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!