• .gz
  • 解压1:gunzip FileName.gz
    解压2:gzip -d FileName.gz
    压缩:gzip FileName

  • .tar.gz
  • 解压:tar zxvf FileName.tar.gz
    压缩:tar zcvf FileName.tar.gz DirName


    • .bz2
    • 解压1:bzip2 -d FileName.bz2
      解压2:bunzip2 FileName.bz2
      压缩: bzip2 -z FileName

Tags: .
1
2
3
4
5
6
7
8
9
10
dpkg -i package.deb 安装包
dpkg -r package 删除包
dpkg -P package 删除包(包括配置文件)
dpkg -L package 列出与该包关联的文件
dpkg -l package 显示该包的版本
dpkg –unpack package.deb 解开 deb 包的内容
dpkg -S keyword 搜索所属的包内容
dpkg -l 列出当前已安装的包
dpkg -c package.deb 列出 deb 包的内容
dpkg –configure package 配置包
Tags: .

For the safe of convenience, we firstly install the compile environment of stardict version 2.4.

# apt-get build-dep stardict

Then, we should clear up the previous stardict, if you installed it. (the dicts will be saved).

# apt-get remove --purge stardict stardict-common

Other packages that are not necessary, maybe.

# apt-get install libenchant-dev libgucharmap-dev gucharmap libespeak-dev
Tags: .
1
2
3
4
5
6
/*
 *Filename:		tri_Diagonal
 *Description	a solution to the tri-diagonal linear formulation
 *author:		HouFenglin@物理0605/DUT
 *Time:			13/04/2009
 */
Tags: .
/*
 
 *Filename:		Gauss_Elimination.cpp
 
 *Description	a solution to the linear formulations
 
 *author:		HouFenglin@物理0605/DUT
 
 *Time:			13/04/2009
 
 */
Tags: .
  • type * p 表示当*p出现在一个表达式中,它表示一个type的值。Type是指针p的基类型。
  • type * p[] 表示当*p[]将被求值为一个type类型的值。
  • type **p **p表示一个type的值。
  • type (*p)[] 这个表达式则表示*p表示一个type [] 类型的值。这是因为括号有更高优先级,故求值运算符仅作用在p上,而不是p[]上。
Tags: .
1
2
3
4
5
6
int
atoi (const char *str)
{				//异常时返回零,觉得不是很合适,但又没想到什么好的方法,标准函数也是这么定义的
    //...
    return result * flag;	//确定符号并返回
}
Tags: .

Access specifiers(public, protected, and private) can be used to express and enforce higher-level constraints on how a type may be used. The most common of these techniques is to disallow copying of an object by declaring its copy operations to be private and not defining them:

Tags: .
Page 31 of 31« First...10...22232425262728293031