ubuntu 8.10源

ubuntu 8.10源
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):

deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse

deb-src http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):

deb http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse

deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse

Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):

deb http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse

Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):

deb http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse

deb http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse

deb-src http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse

deb-src http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse

deb-src http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse

deb-src http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse

deb-src http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse

厦门大学更新服务器(教育网服务器):

deb ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiverse

deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports restricted universe multiverse

deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-proposed main restricted universe multiverse

deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-security main restricted universe multiverse

deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-updates main restricted universe multiverse

deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiverse

deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-proposed main restricted universe multiverse

deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-security main restricted universe multiverse

deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-updates main restricted universe multiverse

成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

== 如果无法解析uestc.edu.cn域名,请使用以下地址 ==

deb http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe

deb http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe

deb http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe

deb http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe

deb http://ubuntu.dormforce.net/ubuntu/ intrepid-updates main multiverse restricted universe

deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe

deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe

deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe

deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-updates main multiverse restricted universe

上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):

deb http://debian.ustc.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb http://debian.ustc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe

deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe

中国台湾 台湾大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-security main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-proposed main restricted universe multiverse

mirror.rootguide.org更新服务器(上海市 电信):

deb http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse

deb-src http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse

deb http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse

deb-src http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse

deb http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse

deb-src http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse

deb http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse

deb-src http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse

deb http://mirror.rootguide.org/ubuntu/ intrepid-proposed main multiverse restricted universe

deb-src http://mirror.rootguide.org/ubuntu/ intrepid-proposed main restricted universe multiverse

台湾的官方源速度也相当不错,有时甚至快于内地的:

deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse


Delphi中数组名是否是数组首地址?

Delphi中包括2种数组申明方法
x: array of byte;
y: array [0..99] of byte;
区别是数组x是动态数组,数组y是静态数组。
现在就来分析下两种定下的区别。
先看数组x
SetLength(x, 99);
OutputDebugString(PChar(Format('%.8x', [Cardinal(x)])));
OutputDebugString(PChar(Format('%.8x', [Cardinal(@x[0])])));
输出结果:
ODS: 00D536C4 Process Project1.exe (3032)
ODS: 00D536C4 Process Project1.exe (3032)

再来看数组y
简单更改下:
OutputDebugString(PChar(Format('%.8x', [Cardinal(y)])));
OutputDebugString(PChar(Format('%.8x', [Cardinal(@y[0])])));
编译未通过,报告OutputDebugString(PChar(Format('%.8x', [Cardinal(y)])));这行[Error] Unit1.pas(27): Invalid typecast
先不管这个问题,改成
OutputDebugString(PChar(Format('%.8x', [Cardinal(@y)])));
OutputDebugString(PChar(Format('%.8x', [Cardinal(@y[0])])));
编译通过,输出:
ODS: 00450BD4 Process Project1.exe (904)
ODS: 00450BD4 Process Project1.exe (904)

通过以上2段小程序,大家可以看出, x 和 @x[0]是等价的, @y和@y[0]是等价的。
那么动态数组名x是数组首地址,这个成立,但是静态数组名y并不等于数组的首地址。
仔细想下y到底是什么,其实y就是数组第一个元素的值也就是y[0],等价于x^, 虽然以上引用都不合法,所以上面会发生通不过编译的情况,但这样描述起来可能更易懂。
所以结论就是在动态数组中,数组名是数组首地址,在静态数组中则不然,可以认为是数组的第一个元素,取他的地址,@静态数组名 才是数组的首地址。


【转】C++中delete和delete[] 的区别

C++告诉我们在回收用 new 分配的单个对象的内存空间的时候用 delete,回收用 new[] 分配的一组对象的内存空间的时候用 delete[]。很多人注意到了这个问题,但是却不清楚为什么要这样做,不这样做行不行。关于 new[] 和 delete[],其中又分为两种情况:(1) 为基本数据类型分配和回收空间;(2) 为自定义类型分配和回收空间。对于 (1),毫无疑问 delete[] 和 delete 是等同的。但是对于 (2),情况就发生了变化。delete p1 在回收空间的过程中,只有 p1[0] 这个对象调用了析构函数,其它对象如 p1[1]、p1 [2] 等都没有调用自身的析构函数,这就是问题的症结所在。如果用 delete[],则在回收空间之前所有对象都会首先调用自己的析构函数。基本类型的对象没有析构函数,所以回收基本类型组成的数组空间用 delete 和 delete[] 都是应该可以的;但是对于类对象数组,只能用 delete[]。对于 new 的单个对象,只能用 delete 不能用 delete[] 回收空间。所以一个简单的使用就是:new 和 delete、new[] 和 delete[] 对应使用。