whileCONDITION;dostatementdone进入循环:条件满足退出循环:条件不满足untilCONDITION;dostatment...done#!/bin/bash#read-p"Inputsomething:"STRINGwhile[$STRING!=‘quit‘];doecho$STRING|tr‘a-z‘‘A-Z‘read-p"Inputsomething:"STRINGdone#!/bin/bash#read-p"Inputsomething:..
分类:
系统相关 时间:
2014-05-13 03:58:53
阅读次数:
343
一、脚本编程控制结构1、顺序2、选择ifcase3、循环a)forb)whileCONDITION;dostatment...done进入循环:条件满足退出循环:条件不满足c)until二、until循环1、格式:untilCONDITION;dostatement...done2、表示:进入循环:条件不满足退出循环:条件满足如:写脚本,每5s检查一..
分类:
系统相关 时间:
2014-05-09 21:35:36
阅读次数:
463
最近加载图片的过程中使用了SwingWork来下载图片,但是发现会使得Swing的UI界面假死查看了一下资料,SwingWork的设计初衷就是为了解决卡死UI的问题,正常使用应该没有问题,但是有一点,它的progress和done都是放在EDT线程中的,如果执行次数过多就会导致EDT线程繁忙导致界面...
最近在看这本书。不过发现需要安装编译工具 lex, yacc。书上说Linux自带lex, yacc。不过我发现我的没有。并且,ubuntu不使用lex, yacc。输入sudo apt-get install yacc lex
会报错, 报错内容如下:Reading package lists... Done
Building dependency tree
Reading sta...
分类:
其他好文 时间:
2014-05-09 06:18:48
阅读次数:
989
sys.c 代码分析
setregid
/*
* This is done BSD-style, with no consideration of the saved gid, except
* that if you set the effective gid, it sets the saved gid too. This
* makes it possib...
分类:
系统相关 时间:
2014-05-09 02:13:12
阅读次数:
621
There are no interfaces on which a capture can be
done解决方法:Open a terminal by pressingCtrl+Alt+Tand type the following
commands:sudo dpkg-reconfigure ...
分类:
其他好文 时间:
2014-05-08 22:18:45
阅读次数:
397
实现android按下回车键便隐藏输入键盘,有两种方法:1.)如果布局是多个EditText,为每个EditText控件设置android:singleLine=”true”,弹出的软盘输入法中
回车键为next,直到最后一个获取焦点后显示为Done,点击Done后,软盘输入键盘便隐藏。或者将Edi...
分类:
移动开发 时间:
2014-05-08 17:42:51
阅读次数:
339
Dijkstra inAdjacency matrix :int Dijkstra(int
src,int tec, int n){ bool done[1005]; int d[1005]; memset(done,0,sizeof(done));
map[0][src] ...
分类:
其他好文 时间:
2014-05-08 09:35:51
阅读次数:
398
DONE:查阅资料,了解标准文档格式DOING:编写测试报告
分类:
其他好文 时间:
2014-05-05 10:13:55
阅读次数:
227
1、不要在链接中接中文参数,而是通过键值对的方式传递Done!
分类:
其他好文 时间:
2014-05-04 20:08:33
阅读次数:
273