我要定义一个字符串常量数组,怎么定义并进行初始化?好像下面的代码不行: const Error_Msg=array [0..3] of string=('First','Second','Third'); 其实很简单,把第一个等于号改成冒号即可: const Error_Msg:array [0..3] of string=('First','Second','Third'); 下面是多维数组的初始化: const WordOptName :array[0..1,0..1,0..1] of string=( (('',''),('','')), (('',''),('','')));此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/67872.html