在delphi中如何定义一个压缩的字符串,比如说18本来是存在两个字节的,现在是存在一个字节?
或者,怎么压缩一个字符串?
或者,怎么压缩一个字符串?
解决方案 »
- 没有人提供迅雷下载的Delphi2007吗?
- 调用C写的动态库中的函数
- 導出數據庫查詢內容為Excel時,同樣的查詢結果,為什麼有的電腦有數據,有的沒數據只是空的(只有表頭)?
- 将adoquery数据集的内容导出到word文件中。
- 关于IE6.0自动保存的问题
- ComboBox1.Items的值赋问题,五分钟结贴
- ADO连数据库,怎么连有的数据库怎么ADOTable1.Tablename没值?
- 请看看这个玩意是用vb做的,用delphi应该可以做的,但能否提供一个思路……
- 请如何给一个程序发送组合键消息(如:Ctrl+X)
- 急诊!要多少分,给多少分,一次给不了,分几次给!
- fastreport中Picture控件的问题?
- C/S:客户端执行时就出现下面的提示错误:“...出错Bof, Eof有一个为真,或当前记录被删除, ......”
s: packed string;是这个意思吗?
files as well as class, class-reference, and interface types. Except for sets, which hold ordinal values only, structured types can contain other structured types; a type can have unlimited levels of structuring.
By default, the values in a structured type are aligned on word or double-word boundaries for faster access. When you declare a structured type, you can include the reserved word packed to implement compressed data storage. For example,type TNumbers = packed array[1..100] of Real;Using packed slows data access and, in the case of a character array, affects type compatibility. For more information, see Memory management.我想意思是,packed只能用于结构类型,上面有例子。