码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
cin.get()!='n'
键盘敲入字符,都暂存才cin的缓冲里面,当发现回车键时,开始从缓冲读取数据。cin >> golf时,就是从缓冲读取数据到golf,golf是int型,当从缓冲读取到其它非数字字符时,意味着读取失败。失败就给cin.?flag?产生错误标志,当错误标志存在时,cin就不能工作了,必须先清除掉。所以有 ...
分类:其他好文   时间:2020-05-01 20:51:43    阅读次数:73
Do you (really) write exception safe code?
原文 https://stackoverflow.com/questions/1853243/do you really write exception safe code https://en.cppreference.com/w/cpp/language/exceptions Exception ...
分类:其他好文   时间:2020-05-01 20:13:26    阅读次数:58
crontab
crontab(crond)是什么? crond是linux系统中用来 定期执行命令 或者 指定程序任务 的一种服务或者软件 秒级任务: 1.crond自身无能为力 2.但是自己可以 写守护进程shell循环(while true;do),来实现秒级任务 backup 备份 为什么需要定时任务: 服 ...
分类:其他好文   时间:2020-05-01 18:42:13    阅读次数:63
Sometimes you just need a straight SWITCH
I used to sovle questions by spilt it into very basic parts. But sometimes it is hard to rebuild the "wheel" or just not convenient to do so. Not only ...
分类:其他好文   时间:2020-05-01 16:37:11    阅读次数:63
31、服务器磁盘、内存、cpu使用率监控
31.1、监控磁盘: #!/bin/sh diskspace="`df -hT`" IFS="\n" disk_value="80" echo "文件系统 类型 容量 已用 可用 已用% 挂载点" for line in $diskspace;do disk=`echo $line | awk -v ...
分类:其他好文   时间:2020-05-01 15:07:26    阅读次数:69
4038: Robot Navigation --bfs(求最短路及其路径条数)
http://www.tzcoder.cn/acmhome/problemdetail.do?method=showdetail&id=4038 用bfs找出最短路,同时更新到该点的路径条数ans 用ans[i][j][f]表示i,j点f方向 f用0,1,2,3表示4个方向 同时和dx,dy数组联系 ...
分类:其他好文   时间:2020-05-01 15:05:30    阅读次数:55
保留目录十个最新文件
#!/bin/bash Filelist=$(ls -l /data/backup/|egrep "^d"|awk '{print $9}') for i in $Filelist; do count=$(ls -l /data/backup/$i|grep -v total|wc -l) whil ...
分类:其他好文   时间:2020-04-30 19:00:59    阅读次数:69
通过binlog统计DML操作的次数
解析分析线上30分中26G的binlog,排查阿里云RDS主库插入ROWS和监控数据不匹配问题。解析binlog汇总到一起:foriinls/mnt/bi/;do/opt/software/mysql-8.0.19-linux-glibc2.12-x86_64/bin/mysqlbinlog-v--base64-output=decode-rows$i>>all_decoded.sql
分类:其他好文   时间:2020-04-30 15:23:31    阅读次数:69
libeay32.dll 和 ssleay32.dll 在1.1.0之后没有了
The complete explanation is that 1.0.x and 1.1.x do not have the same naming conventions for the generated libraries. OpenSSL 1.1.x has moved into wha ...
分类:其他好文   时间:2020-04-30 11:23:13    阅读次数:98
shell脚本之十:while循环及应用实践
十、while循环及应用实践 (一)while循环语法 (二)范例1: 每隔2s输出系统负载情况。 1、脚本执行的方法 | 用法 | 说明 | | | | | sh while1.sh & | 把脚本while1.sh放到后台执行(后台运行脚本时常用) | | nohup while1.sh & | ...
分类:系统相关   时间:2020-04-29 21:54:48    阅读次数:90
14864条   上一页 1 ... 58 59 60 61 62 ... 1487 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!