码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
回溯法第1题—数字排列问题
[问题描述]列出所有从数字1到数字n的连续自然数的排列,要求所产生的任一数字序列中不允许出现重复的数字。输入:n(1n then begin for i:=1 to n do write(a[i],' '); writeln; end else for i...
分类:其他好文   时间:2014-08-12 21:28:34    阅读次数:341
如何写一个数据库How do you build a database?(转载)
转载自:http://www.reddit.com/r/Database/comments/27u6dy/how_do_you_build_a_database/ciggal8Its a great question, and deserves a long answer.Most database...
分类:数据库   时间:2014-08-12 21:24:44    阅读次数:315
Performance analysis of our own full blown HTTP
In previous post?Let‘s do our own full blown HTTP server with Netty 4?you and I were excited by creation of our own web server.?So far so good. But how good?? Given ordinary notebook? cat?/pr...
分类:其他好文   时间:2014-08-12 19:13:14    阅读次数:300
BZOJ1669: [Usaco2006 Oct]Hungry Cows饥饿的奶牛
1669: [Usaco2006 Oct]Hungry Cows饥饿的奶牛Time Limit:5 SecMemory Limit:64 MBSubmit:665Solved:419[Submit][Status]DescriptionFarmer John养了N(1 r do 8 begin .....
分类:其他好文   时间:2014-08-12 18:56:34    阅读次数:170
Lua语言备忘
1.Lua保留字:and break do else elseifend false for funct...
分类:其他好文   时间:2014-08-12 18:13:24    阅读次数:177
nginx多域名ssl证书以及lua模块的编译安装
#!/bin/bash #unzip?zip&tar?file function??untarfile(){ for?i?in?$(?ls?.?|grep?-v?.sh) do val=$(echo?$i?|?grep?".zip$"?|wc?-l) if?[[?"$val"??-eq??1?]];then dirname=$(echo?...
分类:其他好文   时间:2014-08-12 17:47:04    阅读次数:237
Shell脚本-----while循环和until循环
while测试条件do语句1语句2done测试条件:条件满足就循环,直到条件不满足就退出循环while循环如何退出?在循环体中改变测试条件相应的变量值补充:算术运算符sum=$[$sum+$i]=sum+=$i-=*=sum+=1=letsum++sum--sam=3while[$sam-le5]doletsam++done例子:用户随机输入一个数值,就循..
分类:其他好文   时间:2014-08-12 17:40:45    阅读次数:282
LVS多VIP脚本
#!/bin/bash #description:Configrealserverloandapplynoarp SNS_VIP=( 192.168.100.210 192.168.100.220 ) case"$1"in start) for((i=0;i<`echo${#SNS_VIP[*]}`;i++)) do interface="lo:`echo${SNS_VIP[$i]}|awk-F.‘{print$4}‘`" /sbin/ifconfig$interface${SNS_VIP[$i]}br..
分类:其他好文   时间:2014-08-12 17:37:45    阅读次数:205
Python流程控制 if / for/ while
在Python中没有switch语句If语句if condition:do sthelif condition: Do sthelse: Do sthwhile语句有一个可选的else从句while condition: do sthelse: do sthfor循环for i in range(1...
分类:编程语言   时间:2014-08-12 16:38:44    阅读次数:193
Convert JS object to JSON string
Modern browsers (IE8, FF3, Chrome etc.) have native JSON support built in (Same API as with JSON2).So as long you're not dealing with IE6/7 you can do...
分类:Web程序   时间:2014-08-12 13:08:24    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!