#!/bin/bash while[1]doa=$(ifconfigeth0|grep'RXpac'|awk'{print$2}'|awk-F:'{print$NF}')echo-ne"$a\r"#不换行刷新数据 doneecho参 数:-n 不要在最后自动换行 -e 若字符串中出现以下字符,则特....
分类:
其他好文 时间:
2014-07-15 09:43:48
阅读次数:
191
VS3013安装update 2以后,打开offie出现“please wait while windows configures microsoft visual studio professional 2013”提示,每次打开都会有。解决办法:在C:\Windows\Microsoft.NET\...
10951071
2014-07-06 16:14:52
Time Limit Exceeded
1556
3000MS
584K
400 B
G++
长木
#include
#include
#define maxn 100000 + 2
int arr[maxn];
int main()
{
int n, a, b;
while(scanf("...
分类:
其他好文 时间:
2014-07-14 18:12:43
阅读次数:
264
当你循环输入的时候我们有几种方法
一:while(scanf("%d %d",&a,&b)!=EOF)//>0//==1
反正有很多种,但是今天早上我用两个代码提交发现了问题
相同的算法但是第一个超时
#include
#include
#define max 1000000+10
#include
using namespace std;
int a[max];
int cmp(int...
分类:
其他好文 时间:
2014-07-14 16:46:36
阅读次数:
201
[root@Server3Learn]#catuseradd-final.sh
#!/bin/bash
#
DEBUG=0
ADD=0
DEL=0
help(){
echo"Usage:$(basename$0)-v|--verbose|--adduser1,user2,...|--deluser1,user2,...|-h|--help"
}
while[$#-ne0]
do
case$1in
-h|--help)
help
exit0
;;
-v|--verbose)
DEBUG=1
shi..
分类:
其他好文 时间:
2014-07-14 16:25:52
阅读次数:
230
部分程序如下:while(count=read(fd_s,buf,512)>0)printf("count=%d\n",count);write(fd_d,buf,count);打印出来的count始终1,原因:运算符优先级的问题。改为:while((count=read(fd_s,buf,512)...
分类:
其他好文 时间:
2014-07-14 14:54:25
阅读次数:
194
mycat/mycat.c 1 #include "apue.h" 2 #define BUFFSIZE 4096 3 int 4 main(void) 5 { 6 int n; 7 char buf[BUFFSIZE]; 8 while ((...
分类:
其他好文 时间:
2014-07-14 14:38:27
阅读次数:
161
Finding the Centroid of a Room Boundary It's been a while since my last post and I'm sure most of you were like... "Where the hell is Don!".... it's o...
分类:
其他好文 时间:
2014-07-14 10:35:17
阅读次数:
247
CTreeCtrl运用删除无效资源递归的运用自写遍历目录函数递归遍历所有子目录一、删除无效资源 1、打开资源文件 2、找到无效链接删掉二、自写遍历目录函数 CFileFind findfile; int nfound=findfile.FindFile(dirpath); while(nfound)...
分类:
其他好文 时间:
2014-07-14 10:28:09
阅读次数:
205
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2021题目大意:给老师发工资,找出最少的人民币张数。 1 #include 2 int main () 3 { 4 int a,n,i,sum; 5 while (scanf("%d",...
分类:
其他好文 时间:
2014-07-13 20:30:07
阅读次数:
162