我知道是什么意思, GIRL : ARRAY [1..500] OF CHAR; BOY : STRING;{do something with girl}BOY := COPY(GIRL,1,300);{assign girl to boy}{do something with boy}{then how to assign boy back to girl?}girl := boy;{???? SORRY, I don't konw DELPHI.????}
其实就是把一个ARRAY OF CHAR 型的变量先导到一个STRING型的变量中 对它进行一些操作后,我 想 把它再赋回到一个ARRAY型的变量中,但这个想法 还没实现,所以,就是这样了,说点什么吧. 谢谢.
1, boy := girl; 2, 一个一个赋值如何?
if you define girl : array[0..499] of char, then you can use StrPCopy(girl,boy);
supermmx: 1, boy:=girl; :Incompatible types:'Array' and 'String'. 2, One By One :Incompatible types:'Char' and 'String'. save me,...kxy: if i define girl :array [1..1,000,000] of char, then i can not... ...
GIRL : ARRAY [1..500] OF CHAR;
BOY : STRING;{do something with girl}BOY := COPY(GIRL,1,300);{assign girl to boy}{do something with boy}{then how to assign boy back to girl?}girl := boy;{???? SORRY, I don't konw DELPHI.????}
对它进行一些操作后,我 想 把它再赋回到一个ARRAY型的变量中,但这个想法
还没实现,所以,就是这样了,说点什么吧.
谢谢.
2, 一个一个赋值如何?
then you can use StrPCopy(girl,boy);
1, boy:=girl;
:Incompatible types:'Array' and 'String'.
2, One By One
:Incompatible types:'Char' and 'String'.
save me,...kxy:
if i define girl :array [1..1,000,000] of char, then i can not... ...