- 博客(9)
- 资源 (5)
- 收藏
- 关注
转载 Tcl 运算符和数学函数
<br /> <br />Tcl 运算符和数学函数~/tcltk$ cat maths.tcl<br />#!/usr/bin/tclsh<br />#<br /># Demonstrate operators and<br /># math functions<br /><br />set PI [expr 2 * asin(1.0)]<br /><br />if {$argc == 3} {<br /> set X [lindex $argv 0]<br /> set
2011-05-18 11:51:00
4043
原创 exception handing (I)
<br />Exception handing in program can connect the unexpected events to higher exections context, it's able to recover from the abnormal events better.<br /> <br />C++ could specify whether or a function could throw exceptions too.void MyFunc() throw(...)
2011-01-31 15:36:00
425
转载 Proftp安装及配置(完整版)
<br />Proftp安装及配置(完整版)<br /> 一、软件下载<br />proftpd-1.3.1rc3.tar.bz2 1.5 M <br />proftpd-1.3.1rc3.tar.gz 2.0 M <br />官方网站:http://www.proftpd.org/<br />镜像站点:http://www.proftpd.de/<br />二、解压缩、编译安装<br /># 解压缩<br />[root@localhost /]# tar zvxf
2011-01-04 11:15:00
3613
原创 tcl/tk学习笔记(1)
<br /> <br />Spaces are not required around the square brackets used for command substitution. For the purposes of grouping, the interpreter considers everything between the square brackets as part of the current group. The following sets x to the concaten
2010-12-02 15:01:00
1039
原创 set command will return the value of the argument( variable, actually )
<br />eg:<br /> <br />set var {the value of var}<br />=> the value of var<br />set name var<br />=> var<br />set name<br />=> var<br />set $name ## here, the name will be replaced by "var", so <=> set $var => the below result<br />=> the
2010-12-02 14:42:00
487
转载 implicit declaration of function '...' 的warning
用gcc编译c程序的时候 经常会出现implicit declaration of function '...' 的warning 1 没有把函数所在的c文件生成.o目标文件;2 在函数所在的c文件中声明了,但是没有在调用它的.h或.c文件中声明;3 其头文件都声明过了,所调用的函数的原型与所传的实参类型不匹配.
2010-11-05 13:29:00
765
转载 Linux C 编程内存泄露检测工具(二):memwatch
Memwatch简介<br />在三种检测工具当中,设置最简单的算是memwatch,和dmalloc一样,它能检测未释放的内存、同一段内存被释放多次、位址存取错误及不当使用未分配之内存区域。请往http://www.linkdata.se/sourcecode.html下载最新版本的Memwatch。安装及使用memwatch<br />很幸运地,memwatch根本是不需要安装的,因为它只是一组C程序代码,只要在你程序中加入memwatch.h,编译时加上-DMEMWATCH -DMW_STDIO及
2010-11-03 13:15:00
353
转载 Linux C 编程内存泄露检测工具(一):mtrace
前言所有使用动态内存分配(dynamic memory allocation)的程序都有机会遇上内存泄露(memory leakage)问题,在Linux里有三种常用工具来检测内存泄露的情況,包括:mtracedmallocmemwatch1. mtracemtrace是三款工具之中是最简单易用的,mtrace是一个C函數,在里声明及定义,函数原型为: void mtrace(void);其实mtrace是类似malloc_hook的malloc handler,只不过mtrace的handler
2010-11-03 13:14:00
378
转载 .vimrc 设置
<br />"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""<br />" 一般设定<br />"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""<br />" 设定默认解码<br />set fenc=utf-8<br />set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,g
2010-11-03 13:12:00
328
AdvancedPerlProgramming.rar
2008-11-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人