加载中
设置LINUX自动对时

/etc/rc.d/rc.local 加入一行 Ntpdate –u 10.0.111.102 Touch NTP.sh 写入 #!/bin/sh NTPSERVERIP=10.0.111.102 ntpdate -u $NTPSERVERIP 将此脚本拷贝到/etc/cron.hourly/下...

2012/10/26 15:00
2K
VIM不生成~后缀的临时文件

/etc/.vimrc set nobackup set nowritebackup set noswapfile

2012/10/26 14:59
1.6K
永久更改Linux的hostname

man hostname里有这么一句话,”The host name is usually set once at system startup in /etc/rc.d/rc.inet1 or /etc/init.d/boot (normally by reading the contents of a file which con...

2012/10/26 14:58
160
修改Linux redhat 默认启动方式

/etc/inittab id:3:initdefault: 命令行 id:5:initdefault: 界面

函数指针

定义函数指针 定义函数指针时需要指定它指向的函数类型.函数的类型由它返回类型和参数表决定,函数名不是函数类型的一部分,函数返回类型和参数表组合在一起代表了不同的函数类型.下面的语句申...

显式类型转换

显式转换也被称为强制类型装欢,包括四个强制类型转换运算符:static_cast,dynameic_cast,const_cast和reinterpret_cast.使用强制类型转换就关闭了c++的类型检查设施,容易引起错误.但是有些情...

pthread_clean_push和pthread_clean_up

语法: void pthread_cleanup_push(void (*routine)(void*), void *arg); void pthread_cleanup_pop(int execute);//这里的int参数,0是不执行push的内容,非0是执行。 pthread_cleanup_push...

2012/10/26 14:49
269
数据库的关闭与启动

数据库启动 #su - oracle #sqlplus / as sysdba SQL>shutdown abort//关 SQL>startup//开 SQL>exit #exit...

2012/10/26 14:40
73
普通函数指针和指向成员函数指针

函数指针 最近在研究STL的函数适配器时,才发现自己对函数指针其实也不太熟悉,所以决定写下这篇文章记录一下,以便将来又忘了的时候可以看看,说不定有人会因此而受益(虽然我也知道好象不太...

socket(AF_INET,SOCK_STREAM,0)

生成一个TCP的socket Function: int socket (int namespace, int style, int protocol) This function creates a socket and specifies communication style style, which should be one of...

pthread_cancel,pthread_killall 段错误

前几天一个程序老是出现段错误,最后实在找不到地方,用gdb单步,发现问题出现在一个回调函数的pthread_cancel中。这个问题就奇怪了。《Unix系统编程》上说了pthread_cancel没有定义必须检测...

字符窜散列函数

static unsigned long hashpjw(char *arKey, unsigned int nKeyLength) { unsigned long h = 0, g; char *arEnd=arKey+nKeyLength;      while (arKey < arEnd) { h = (h << 4) + *arKe...

2012/08/20 20:33
127
UE中文乱码的解决

打开UltraEdit安装路径下的Uedit32.ini(如果没有这个文件,那说明你的UltraEdit版本的ini不是放在安装路径下的, 得去C:\Documents and Settings\(登录用户名,默认是Administrator)\Applic...

2012/08/18 14:09
2.6W

没有更多内容

加载失败,请刷新页面

返回顶部
顶部