码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
crontab 每月最后一天
0 8 28-31 * * [ `date -d tomorrow +%e` -eq 1 ] && do-something我觉得能想到这种方法的,都是经验丰富的人。程序员们,想当然的就会就写出很复杂的代码。
分类:其他好文   时间:2014-05-26 20:39:23    阅读次数:252
Ruby常用文件操作
#建立一个222.rb文件并且输入字符file = File.open("222.rb","w+")file.puts "123\nwadwa\n12124124\ndwdw"file.close#输出222.rb的内容File.open("222.rb","r+") do |file|while ...
分类:其他好文   时间:2014-05-26 16:07:50    阅读次数:293
MonkeyRunner (三)
Running monkeyrunnerYou can either run monkeyrunner programs from a file, or enter monkeyrunner statements in an interactive session. You do both by i...
分类:其他好文   时间:2014-05-26 15:07:58    阅读次数:263
Top 10 tough core Java interview questions answers programming
Tough core Java interview questions and answersWhat is tough core java interview question ? Why do people look for tough Java questions before going f...
分类:编程语言   时间:2014-05-26 12:41:29    阅读次数:371
不要对外公开泛型List成员
最近在阅读Framework Design Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
分类:其他好文   时间:2014-05-26 12:32:20    阅读次数:294
javascript中的数据结构
Javascript中的关键字abstract continue finally instanceof private thisboolean default float int public throwbreak do for ...
分类:编程语言   时间:2014-05-26 08:29:39    阅读次数:365
看个人思路吧,清晰的话就简单 CodeForces 271A - Beautiful Year
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits. Now you are suggested to solve the f...
分类:其他好文   时间:2014-05-24 21:52:34    阅读次数:320
linux $* $@ 特定位置参数
举例说:脚本名称叫test.sh 入参三个: 1 2 3运行test.sh 1 2 3后$*为"1 2 3"(一起被引号包住)$@为"1" "2" "3"(分别被包住)$#为3(参数数量)如脚本:#!/bin/shfor loop in "$*" do echo $loop done输出循环一...
分类:系统相关   时间:2014-05-24 10:09:30    阅读次数:304
leetcode Remove Nth Node From End of List
题目说:Try to do this in one pass 只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode...
分类:其他好文   时间:2014-05-23 01:52:29    阅读次数:331
2014北京邀请赛 Happy Reversal
H. Happy Reversal 64-bit integer IO format: %lld      Java class name: Main Elfness is studying in an operation "NOT". For a binary number A, if we do operation "NOT A", after that, all digit...
分类:移动开发   时间:2014-05-23 00:43:49    阅读次数:430
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!