码迷,mamicode.com
首页 >  
搜索关键字:while read line for ifs    ( 74720个结果
定时器0方式2 方式3
定时器0方式2 #include #define uchar unsigned char #define uint unsigned int sbit led1=P1; uint num; void main() { TMOD=0x02; TH0=6; TL0=6; EA=1; ET0=1; TR0=1; while(1) { if(num==3686) { ...
分类:其他好文   时间:2014-07-22 22:49:34    阅读次数:225
(CF#257)B. Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two int...
分类:其他好文   时间:2014-07-22 22:49:33    阅读次数:296
win7操作系统双击我的电脑提示服务器运行失败
步骤一:开始菜单--> 右击点属性 --> 点击自定义 --> 将控制面板选项下的单选框选择显示为菜单 ; 步骤二:开始菜单--> 控制面板 --> 文件夹选项 --> 在查看中将在单独的进程中打开文件夹窗口前的勾去掉,点击确认...
分类:Windows程序   时间:2014-07-22 08:10:35    阅读次数:208
安装Quagga路由软件
#!/bin/bash 要先下载好软件:quagga-0.99.19.tar.gz cp?/etc/yum.conf?/etc/yum.conf.lnmp sed?-i?‘s:exclude=.*:exclude=:g‘?/etc/yum.conf for?packages?in?gcc?gcc-c++?ncurses-devel?libxml2...
分类:其他好文   时间:2014-07-21 10:31:21    阅读次数:260
AlertDialog自定义关闭
如果AlertDialog里有输入框,那么如何根据自己的需要关闭AlertDialog,网上有很多是通过反射方式。这里有另外一种方法。 Builder builder = new Builder(MainActivity.this); builder.setTitle("服务器设...
分类:其他好文   时间:2014-07-21 10:19:04    阅读次数:168
适合办公族用的在线PDF转换器
对于PDF文件格式的转换问题,普通用户选择迅捷PDF转换器可以非常轻松地实现上述功能。用户仅仅需要将PDF文件拖放到程序界面,程序将自动地将PDF文件内容自动分析和预处理,并借助超线程转换核心的帮助,快速地将P...
分类:其他好文   时间:2014-07-21 10:07:19    阅读次数:293
Codeforces Round #257 (Div. 2) B Jzzhu and Sequences
Jzzhu has invented a kind of sequences, they meet the following property: You are given x and y, please calculate fn modulo 1000000007 (109?+?7). Input The first line contains two integers...
分类:其他好文   时间:2014-07-20 10:43:17    阅读次数:213
do while 循环和while循环的区别
do while 循环和while循环的区别 1、do while循环是先执行循环体,然后判断循环条件,如果为真,则执行下一步循环,否则终止循环;    while循环是先判断循环条件,如果条件为真则执行循环体; 2、do while循环条件后面必须有一个分号,这个分号表明循环结束。...
分类:其他好文   时间:2014-07-20 10:32:28    阅读次数:189
用shell本检查日志中是否有错,有错则发邮件
#!/bin/bash#初始化环境变量source.bash_profile#日志名中的固有日期格式f_name=`date+%Y%m%d`#日志的路径及名称log_file=/backup/db/rman/log/rman$f_name-0401.logecho$log_file#统计日志文件行数#line_num=`wc-l$log_file|awk‘{print$1}‘`#echo$line_num#如果日志文件不存在..
分类:其他好文   时间:2014-07-20 10:18:28    阅读次数:304
Codeforces Jzzhu and Sequences(循环节)
# include int f[10]; int main() { int x,y,n,j; while(~scanf("%d%d%d",&x,&y,&n)) { f[1]=x; f[2]=y; for(j=3;j<=6;j++) { f[j]=f[j-1]-f[j-2]; } n%=6; if(n==0) n=6; if(f[...
分类:其他好文   时间:2014-07-20 10:14:09    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!