【1】Virtual是C++
OO机制中很重要的一个关键字。只要是学过C++的人都知道在类Base中加了Virtual关键字的函数就是虚拟函数(例如下面例子中的函数print),于是在Base的派生类Derived中就可以通过重写虚拟函数来实现对基类虚拟函数的覆盖。当基类Base的指针point指向...
分类:
编程语言 时间:
2014-05-14 02:11:02
阅读次数:
352
Non woven bags business conditions in the production process often appear to expand production scale, shorten the production cycle to produce more products, market share, in fact, corporate profits No...
分类:
其他好文 时间:
2014-05-13 15:39:48
阅读次数:
272
查询当前运行进程中是否有指定进程有多种方式,下面介绍一种通过进程名获取进程号,以此来确认该进程是否在运行。
如下实例,查询当前运行进程中是否有test进程在运行。
char buf[200]={0};
system("ps -A | awk '/test/{print $1}'>result");
FILE *fd;
fd=popen...
分类:
系统相关 时间:
2014-05-13 08:02:55
阅读次数:
409
document.write("**************一.指代当前对象**********************");
function print(str){
document.write(str+"");
};
/*
javascript里面的this可谓是所有语言里最让人费解的了,学习国java或者php的人
在学习javascript的时候会觉得非常莫名其妙,因为...
分类:
编程语言 时间:
2014-05-13 05:15:47
阅读次数:
387
在Centos6.5中发现,安装了Gnome桌面的回收站在~/.local/share/Trach
分类:
其他好文 时间:
2014-05-13 04:54:14
阅读次数:
179
#!/bin/bash
#checkmysqlslavestatus
USER="check"
PSW="***"
RUNTIME=3600
ADDR="192.168.*.*"
declare-aslave_is
forIPin$ADDR
do
slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘))
if["${slave_is[0]}"="Y..
分类:
数据库 时间:
2014-05-13 04:33:44
阅读次数:
374
autofs自动挂载服务需求:把下面这两条命令做成自动挂载172.16.2.6:/share/soft/share/soft172.16.2.6:/share/iso/share/iso客户端:1、#mkdir/share(挂载点)2、#vim/etc/auto.master/share/etc/auto.share--后面这个文件不存在,自定义的名字3、#vim/etc/auto.sharesoft-172..
分类:
其他好文 时间:
2014-05-13 02:06:56
阅读次数:
388
flex3+struts 1.3+spring+ibatis 2.x整合代码实例,代码下载地址:http://www.zuidaima.com/share/1778657261997056.htm...
分类:
编程语言 时间:
2014-05-12 23:06:59
阅读次数:
719
XBMC快捷键配置文件:/usr/share/xbmc/system/keymaps/keyboard.xml<FullscreenVideo>
<keyboard>
<period>StepForward</period>
<comma>StepBack</comma>
<quote>SmallStepBack</quote>
<opensquarebracket>BigStepFor..
分类:
系统相关 时间:
2014-05-12 03:26:23
阅读次数:
417