码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
Fragment
项目需要,学习下Fragment,怎么学习,毫不犹豫的选择看官方文档,文档内容如下,感觉重要的的内容标记为红色:Creating a FragmentFigure 2.The lifecycle of a fragment (while its activity is running).To cre...
分类:其他好文   时间:2014-06-27 19:10:33    阅读次数:306
C程序设计笔记
?C程序设计笔记第一课单词:main 主函数 else 否则int 整数型 for 循环float 浮点型 while 当...的时候char 字符型 swichprintf 输出函数 case 案例scanf 输入函数 default 默认 if 如果 ...
分类:其他好文   时间:2014-06-27 16:38:12    阅读次数:263
Linux下实现秒级定时任务的两种方案
Linux下实现秒级定时任务的两种方案(Crontab 每秒运行):第一种方案,当然是写一个后台运行的脚本一直循环,然后每次循环sleep一段时间。while true ;docommandsleep XX //间隔秒数done第二种方案,使用crontab。我们都知道crontab的粒度最小是到分...
分类:系统相关   时间:2014-06-27 16:27:29    阅读次数:339
[转]安装SharePoint 2013时安装AppFabric失败(错误码:1603)
转自:http://blogs.technet.com/b/praveenh/archive/2013/02/22/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appf...
分类:移动开发   时间:2014-06-27 16:01:36    阅读次数:425
Sql Servicer 复习笔记(1) 存储过程分布
第一步:创建表 1 declare @countInt int 2 declare @age int 3 set @age =20 4 set @countInt=1 5 while(@countInt=50)14 begin15 set @age=25;16 end17 18 end19 ...
分类:数据库   时间:2014-06-27 14:23:47    阅读次数:434
POJ 2892 Tunnel Warfare (树状数组+二分)
题目大意: 三个操作 D pos  将pos位置摧毁,让它和周围不相连。 Q pos 问和pos 相连的有多少个村庄。 R 修复最近摧毁的村庄。 思路分析: 树状数组记录这个区间有多少个1。 如果  [s-e] 有e-s+1个1 的话。那么这个区间是相连的。 这样的话,我们就可以用二分的办法求出与某个位置最大相连的数量。 还有这里二分 while(l { i...
分类:其他好文   时间:2014-06-27 09:54:14    阅读次数:183
lxc-config: error while loading shared libraries liblxc.so.1
转载请注明出处:http://www.openext.org/2014/06/lxc-erro1#tar zxvf lxc-xxx.tar#./autogen#./configure –prefix=/usr/local/lxc#make#make install#lxc-lsthe error:#echo “/usr/local/lxc/lib” >> /etc/ld.so.conf#ldcon...
分类:其他好文   时间:2014-06-27 08:36:38    阅读次数:156
解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https” 解决方法: 编辑.git文件夹下的config文件就可以。vim .git/config#改动对于的...
分类:数据库   时间:2014-06-26 23:42:11    阅读次数:2062
线程的一些感悟
背景:通过一个辅助线程计算出的一个值赋给textBox1.text;1.当点击一个button事件 去触发一个while(1)的循环事件时,如果不用线程去操作 界面就会卡死解决方法:需要加入线程。2然后发现在线程中去操作一个控件的显示(比如 textBox1.text=“”;)时会产生如下error...
分类:编程语言   时间:2014-06-26 23:03:38    阅读次数:289
poj 3903 Stock Exchange(最长上升子序列,模版题)
题目#include//最长上升子序列 nlogn//入口参数:数组名+数组长度,类型不限,结构体类型可以通过重载运算符实现//数组下标从1号开始。int bsearch(int a[],int len,int num){ int left=1,right=len; while(left...
分类:其他好文   时间:2014-06-26 16:20:12    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!