码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
HDU 1789 Doing Homework again
Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands i...
分类:其他好文   时间:2014-07-29 22:05:32    阅读次数:390
JavaScript入门:005—JS基本语句
JS的基本语句如下。主要看看循环语句和选择语句。循环语句1、for循环for(var i=1;i<100;i++){ //代码 }2、do...while循环 var i = 0; do { i++; //代码 }while(i3、遍历 var array = new Array(); array[0] = "你懂的"; ...
分类:编程语言   时间:2014-07-29 21:55:02    阅读次数:340
delphi 2010 资源文件使用
Project Recources...//1提取出资源procedure TForm1.Button1Click(Sender: TObject);begin with TResourceStream.Create(HInstance, 'SnapShot_EXE', RT_RCDATA) do ...
分类:其他好文   时间:2014-07-29 21:45:22    阅读次数:593
delphi treeview 鼠标移动显示hint信息
procedure TForm1.TreeView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var Node: TTreeNode;begin with TreeView1 do begin Node := GetN...
分类:移动开发   时间:2014-07-29 21:40:42    阅读次数:393
ZOJ 3781 Paint the Grid Reloaded (最短路)
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3781题意:在n*m矩阵的图定义连通区域为x值或y值相同且颜色相同的连通,连通具有传递性每次可以把一个连通区域颜色反转(O变X,X变O)问把所有块的颜色变为X最小的步数方法:很...
分类:其他好文   时间:2014-07-29 21:40:22    阅读次数:358
反转字符串
function ReverseString(s: string): string;var i: integer; s1:string;begin s1 := ''; for i := 1 to Length(s) do s1 := s[i] + s1; Result:=s1;end;procedu...
分类:其他好文   时间:2014-07-29 21:05:32    阅读次数:197
已知有个rand7()的函数,返回1到7随机自然数,让利用这个rand7()构造rand10() 随机1~10
1.int rand7() 2.{ 3. return rand()%7+1; 4.} 5. 6.int rand10() 7.{ 8. int x=0; 9. do 10. { 11. x=(rand7()-1)*7+rand7(); 12. } 13. while(x>40); 14. retu...
分类:其他好文   时间:2014-07-29 20:53:23    阅读次数:156
捍卫你的梦想
今天看了一段话觉得挺有道理的。内容如下: You got a dream,you gotta protect it.People can't do something themselves,they wanna tell you can't do it .If you want something,got get it.Period.  (如果你有梦想的话,就要去捍卫它。当别人做不到的...
分类:其他好文   时间:2014-07-29 18:01:53    阅读次数:246
Struts基础开发(章节摘要)
1,Struts是MVC框架的一种实现,通过Struts的ActionForm可以完成数据的验证,通过Action可以完成与Servlet一样的功能。 2,Struts的所有请求都是通过*.do的路径提交到相应的Action上去的,所有的Action都需要在struts-config.xml文件进行配置。 3,在Struts中所有的资源信息都是通过ApplicationReso...
分类:其他好文   时间:2014-07-29 18:00:12    阅读次数:237
How to do SSH Tunneling (Port Forwarding)
How to do SSH Tunneling (Port Forwarding) In this post we will see how ssh works?, what is SSH tunneling? what is important of ssh tunnels and how to ...
分类:其他好文   时间:2014-07-29 17:04:22    阅读次数:576
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!