字符串是包换,或&时编译会出错(20)

S

sutao01

Unregistered / Unconfirmed
GUEST, unregistred user!
在程序要用到'n&+p)-p&+n',c#'q#'<
'这个字符串,但在编译时总是会报错,具体信息是:[Error] main.pas(234): 'END' expected but ',' found[Error] main.pas(234): Illegal character in input file: '&' ($26)[Error] main.pas(234): Unterminated string 请各位大侠帮忙看看,如何解决?谢谢了!
 
M

mini2000

Unregistered / Unconfirmed
GUEST, unregistred user!
若是除了最外边两个单引号为字符串分隔符的话建议使用如下方式:'n&+p)-p&+n'',c#''q#''<
'
 
S

sutao01

Unregistered / Unconfirmed
GUEST, unregistred user!
接受答案了.
 

Similar threads

I
回复
0
查看
505
import
I
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
637
import
I
顶部