#建立一个222.rb文件并且输入字符file =
File.open("222.rb","w+")file.puts
"123\nwadwa\n12124124\ndwdw"file.close#输出222.rb的内容File.open("222.rb","r+") do
|file|while ...
分类:
其他好文 时间:
2014-05-26 16:07:50
阅读次数:
293
一. SQL语言1.DDL 数据库模式定义语言(create alter drop
__对对象操作)2.DML 数据操纵语言(insert delete update)3.DCL 数据控制语言 (grantrevoke)4.流程控制语言(if
while)二.输出记录前几条 用limitmysql不...
分类:
数据库 时间:
2014-05-26 14:27:05
阅读次数:
317
Mac下安装Centos后,Mac和Centos之间默认是不通的,需要做下面一些设置后,才能互相共享。
启用网络设置 默认的网络设置是没有enable的,因此,在安装完之后需要开启的话,需要保证开启”Shared Network”,
同时再运行命令”/sbin/dhclient eth0”, 这样虚...
分类:
其他好文 时间:
2014-05-26 14:23:23
阅读次数:
334
\n"; while($file = $mydir->read()) {
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")) { echo
"$fi...
分类:
Web程序 时间:
2014-05-26 14:22:05
阅读次数:
239
1、使用free – m命令查看内存使用情况代码如下:total used free shared
buffers cached Mem: 3832 2716 1115 0 95 1483 -/+ buffers/cache: 1137 2695 Swap:
6015 0 6015从上面可以看到内存...
分类:
其他好文 时间:
2014-05-26 11:57:51
阅读次数:
295
FREENAMEfree显示系统可用内存和已使用内存语法free [-b | -k | -m]
[-o] [-s delay ] [-t] [-l] [-V]描述free显示了总可用和被用的物理内存和swap内存,也包括内核使用的buffer,shared
memory已经被废弃选项[-b | -k...
分类:
系统相关 时间:
2014-05-26 11:29:08
阅读次数:
326
#includeusing namespace std;///算法重要,但是思想更重要 void
MemeryArray(int a[],int n,int b[],int m,int c[])///经典框架,be careful!{ int i,j,k;
i = j = k = 0; while(...
分类:
其他好文 时间:
2014-05-26 11:22:57
阅读次数:
204
String.prototype.format = String.prototype.f =
function () { var s = this, i = arguments.length; while (i--) { s =
s.replace(new R...
分类:
编程语言 时间:
2014-05-26 10:49:23
阅读次数:
356
Here are some tips to guide you while shopping
discount LV bags online. Look at the rack bag. Before you go out and buy
handbags online, it is good to...
分类:
其他好文 时间:
2014-05-26 10:26:29
阅读次数:
279
#include#include#includeusing namespace std; //void
MinHeapFixup(int a[], int i)//{// int j ,temp;// temp = a[i];// j = (i-1)/2;//
while(j >= 0 && i !...
分类:
其他好文 时间:
2014-05-26 10:26:08
阅读次数:
212