它们类似于原始类和类类型吗?
对于
function binaryFormat (binary:String; n:Integer) : String;
Run Code Online (Sandbox Code Playgroud)
和
function binaryFormat (binary:String; n:Integer) : string;
Run Code Online (Sandbox Code Playgroud)
他们的结果值是否相同?
在Delphi中,内置类型通常以大写字母开头,我看到很多Delphi代码都在String使用,好像有一个带有这个名字的类型.但这是错误的,没有String类型(首字母大写) - 所以String只是拼写错误.
正确的拼写是string(全部小写),它是UnicodeString(在Delphi 2009及以上版本中)的别名,请参阅http://docwiki.embarcadero.com/RADStudio/XE3/en/String_Types
| 归档时间: |
|
| 查看次数: |
499 次 |
| 最近记录: |