码迷,mamicode.com
首页 >  
搜索关键字:do ... while 循环    ( 74622个结果
[记忆化搜索] zoj 3681 E - Cup 2
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3681 E - Cup 2 Time Limit: 2 Seconds      Memory Limit: 65536 KB The European Cup final is coming. The past two World C...
分类:其他好文   时间:2014-05-15 14:56:27    阅读次数:393
Web Js判断键盘出发事件
window.document.onkeydown = disableRefresh; function disableRefresh(evt){ evt = (evt) ? evt : window.event if (evt.keyCode) {    if(evt.keyCode == 116){      //do something    } } } keycode 8...
分类:Web程序   时间:2014-05-15 06:08:18    阅读次数:315
链表的C++实现
有的时候,处于内存中的数据并不是连续的。那么这时候,我们就需要在数据结构中添加一个属性,这个属性会记录下面一个数据的地址。有了这个地址之后,所有的数据就像一条链子一样串起来了,那么这个地址属性就起到了穿线连结的作用。 链表有:单链表,双链表,单循环链表,双循环链表。 理解单链表,其他几种也就大同小异。     相比较普通的线性结构,链表结构的优势是什么呢?我们可以总结一下:     (1)...
分类:编程语言   时间:2014-05-15 05:48:01    阅读次数:266
cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following erroroccurred while executing this line:G:\android\SDK\android-sdk-windows\tools\ant\build.xml:683: null returned:...
分类:移动开发   时间:2014-05-15 04:48:27    阅读次数:647
[dp] zoj 3682 E - Cup 3
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3682 E - Cup 3 Time Limit: 3 Seconds      Memory Limit: 65536 KB The 2012 Europe Cup was over and Spain won the Champio...
分类:其他好文   时间:2014-05-15 03:30:08    阅读次数:370
LeetCode 008 String to Integer (atoi)
【题目】 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for this problem to be s...
分类:其他好文   时间:2014-05-14 21:00:57    阅读次数:304
LeetCode 009 Palindrome Number
【题目】 Determine whether an integer is a palindrome. Do this without extra space. 【题意】 题意判断一个整数是否是回文数 注意一下几点: 1. 不能用额外的空间 2. 负数不是回文数...
分类:其他好文   时间:2014-05-14 20:31:10    阅读次数:298
深入解析thinkphp中的addAll方法
原因:在做中控系统中遇到了一个给用户批量分配角色的问题,刚开始想到的是循环插入,但立马给否定了,循环操作数据库开发者的大忌啊,于是查找手册找到数据写入看到批量操作:addAll(),测试成功,以为万事大吉了,但当第二次操作时提示失败,找原因,原来是数据库中已经存在的..
分类:Web程序   时间:2014-05-14 16:56:46    阅读次数:360
关于thinkphp中的$this->redirect和直接使用redirect
问题:刚进入系统时候遇到一个奇怪的问题,浏览器提示:此页包含循环重定向,郁闷,然后就开始检测我的页面中的跳转,一个一个的试,终于发现了这个redirect方法,注释掉后就可以,去掉注释就不行,郁闷,查手册发现了这两个的区别。解决方法:将redirect方法改成$this->red..
分类:Web程序   时间:2014-05-14 16:08:32    阅读次数:397
hdu 最小公倍数
/* * hdu 最小公倍数 * date 2014/5/13 * state AC */ #include using namespace std; int gcd(int x,int y) { while(x!=y) { if(x>y)x=x-y; else y=y-x; } return x; } int main() ...
分类:其他好文   时间:2014-05-14 14:29:59    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!