暌违多日。为大家奉上《玩转Bash脚本》系列的第7篇,这次我来介绍一下Shell脚本中循环结构里面的for循环。shell脚本除了自身风格的for循环外,还支持C语言风格的for循环哦...
分类:
其他好文 时间:
2014-12-13 20:35:26
阅读次数:
186
mangodb安装1. 下载mongodb的安装文件,我安装的windows 64位的,下载地址如下:https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.6.6-signed.msi2. 新建一个mongodb文件夹在E盘...
分类:
数据库 时间:
2014-12-13 19:20:15
阅读次数:
244
printf("%f\n",5); printf("%d\n",5.01); printf("%f\n", (float)5); printf("%f\n", 5.f); out:0.00000018897856105.0000005.000000看到结果,会感觉非常奇怪。1处怎么会输...
分类:
其他好文 时间:
2014-12-13 19:19:08
阅读次数:
224
/opt/mongodb-2.6.6/bin > mongo1. 查询本地所有数据库名称> show dbs2. 切换至指定数据库环境(若无指定的数据库,则创建新的库)> use test;3. 创建了一个名为'emp'的集合> db.createCollection('emp');{ "ok" :...
分类:
数据库 时间:
2014-12-13 19:14:41
阅读次数:
172
做九度题的时候,由于数据量大,很多情况下得用scanf和printf代替cin和cout用于输入输出,不然会报错超时不能AC。
有三条建议用于提高C++的输入输出速度:
At the first line in main function,add :std::ios_base::sync_with_stdio(false).which cancel theSynchronization b...
分类:
其他好文 时间:
2014-12-13 18:04:43
阅读次数:
176
先run xterm -e p-b.tcl
然后run p1.tc (p1.tcl 启动多个)
在pi.tcl run后输入shell 命令即可。如ls,pwd
欢迎大家comments...
分类:
系统相关 时间:
2014-12-13 17:57:34
阅读次数:
182
From:http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html花了很长时间整理的,感觉用起来很方便,共享一下。我的vim配置主要有以下优点:1.按F5可以直接编译并执行C、C++、java代码以及执行shell脚本,按“F8”可进...
分类:
系统相关 时间:
2014-12-13 17:45:03
阅读次数:
277
(1)makefile 中,出现$$(M) 是什么意思,发现还是看实际的Makefile长知识啊在makefile中,会经常使用shell命令,也经常见到$var 和 $$var的情况,有什么区别呢,区别大了。不要认为在makefile的规则的命令行中使用$var就是将makefile的变量和she...
分类:
其他好文 时间:
2014-12-13 17:43:37
阅读次数:
255
E:\android\android-sdk-windows-1.5_pre\tools>adb shell am instrument -w cc.androidos.activity/android.test.InstrumentationTestRunner如果你配置了Android环境变量,...
分类:
移动开发 时间:
2014-12-13 16:22:04
阅读次数:
202
Button是SWT中最常用的组件.而且使用也比较简单.程序说明:Button类的造成方法是new Button(Composite parent,int style),它有两个参数:第一个参数是指Button创建在哪一个容器上.Composite是最常用的容器,而Shell是Composite的子...
分类:
其他好文 时间:
2014-12-13 15:04:10
阅读次数:
498