码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
shell 脚本练习4
练习:写一个脚本,(使用函数) 1、提示用户输入一个磁盘设备的设备文件,如果设备文件不存在,就提示用户重新输入,直到用户输入正确为止; 当用户给出正确的块设备后: 1、显示用户输入块设备,并提示用户,后续的操作会损坏设备上的所有文件,让用户选择是否继续 2..
分类:其他好文   时间:2014-07-27 11:58:16    阅读次数:223
Shell命令sshpass非交互SSH密码验证
Shell命令sshpass非交互SSH密码验证 #安装sshpasssshpass 下载地址:http://sourceforge.net/projects/sshpass/  下载为一个 tar.gz的压缩包。 $ tar -zxvf sshpass-1.05.tar.gz $ cd sshpass-1.05 $ ./configure --prefix=/opt/sshpass...
分类:其他好文   时间:2014-07-27 11:54:53    阅读次数:182
poj 2287 Tian Ji -- The Horse Racing (贪心)
# include # include # include using namespace std; int main() { int n,i,j,k,count; int flag1[1010],flag2[1010],a[1010],b[1010]; while(~scanf("%d",&n),n) { for(i=0;i<n;i++) scanf("%d",&a[...
分类:其他好文   时间:2014-07-27 11:41:45    阅读次数:190
P95
#include void fun(char *s,int *t) { int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]>='0'&&s[i]<='9') n++; *t=n; } main() { char s[80]="asdf45edx7sd7"; int t; printf("\nThe original string is :%s\n...
分类:其他好文   时间:2014-07-27 11:32:32    阅读次数:232
P100
#include #define N 9 int fun(int a[],int n) { int i,j=0; for(i=0;i<n;i++) if(a[i]%2==0) { a[j]=a[i]; j++; } return j; } main() { int b[N]={9,7,5,3,4,6,8,2,1},i,n; printf("\nThe origi...
分类:其他好文   时间:2014-07-27 11:30:12    阅读次数:166
Codeforces 344B Simple Molecules
#include using namespace std; int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int ab=a+b-c,bc=b+c-a,ac=a+c-b; if(ab>=0&&bc>=0&&ac>=0&&ab%2==0&&bc%2==0&&ac%2==0) printf("%d %d...
分类:其他好文   时间:2014-07-27 11:14:02    阅读次数:194
数据结构之shell排序
#SIZE  10        //直接插入排序     void insert_sort(){           int i,j;           int array[SIZE+1];           array[]={0,12,23,11,55,2,34,18,20,48,22};           for(i=2;i               array[0]=...
分类:其他好文   时间:2014-07-27 11:11:32    阅读次数:238
poj 2709 Painter (贪心)
//需要n中普通原料和g ml灰色原料 //每三种不同普通原来各x ml 可以合成 x ml 灰色原料 //问最少需要集组原料 每组各原料50 ml # include # include # include using namespace std; int main() { int i,n,cot,g,a[15],g1,b[15]; while(~scanf("%d",&n),n)...
分类:其他好文   时间:2014-07-27 11:10:12    阅读次数:335
bashrc,bash_profile和/etc/profile
bashrc,bash_profile和/etc/profile最近老出现在shell里面能跑的程序用鼠标双击app去不能跑.究其原因是因为环境变量的问题.在类unix系统中一般有三个bash配置文件:~/.bashrc 当前用户使用的配置文件~/.bash_profile 当前用户使用的配置文件/...
分类:其他好文   时间:2014-07-27 10:09:12    阅读次数:250
[Android Tips] 启动应用就开始调试
adb shell am set-debug-app -w {package_name}
分类:移动开发   时间:2014-07-27 09:59:32    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!