原来如此,那我该如何解决这个问题〉? A null or zero terminated string is an array of characers, indexed by an integer starting from zero. Since the array has no length indicator, Delphi uses the ASCII 0 (NULL; #0) character to the boundary of the string. This means there is essentially no difference between a null-terminated string and an array[0..NumberOfChars] of type Char, where the end of the string is ed by #0.
应该不是的,我单步delphi的时候现实的是 'AAA'#0'AAA' 类似的
A null or zero terminated string is an array of characers, indexed by an integer starting from zero. Since the array has no length indicator, Delphi uses the ASCII 0 (NULL; #0) character to the boundary of the string.
This means there is essentially no difference between a null-terminated string and an array[0..NumberOfChars] of type Char, where the end of the string is ed by #0.