提示Expected ';' but '=' found.(100)

  • 主题发起人 主题发起人 nbxong
  • 开始时间 开始时间
N

nbxong

Unregistered / Unconfirmed
GUEST, unregistred user!
type [red]const Info:Infomation= ((Planet:'水星';R:2440;RCycle:58.65;PictureFileName:'水星.bmp'), (Planet:'金星';R:6052;RCycle:243.0;PictureFileName:'金星.bmp'), (Planet:'地球';R:6387;RCycle:1.0;PictureFileName:'地球.bmp'), (Planet:'火星';R:3395;RCycle:1.0257;PictureFileName:'火星.bmp'));[/red]不知道为什么啊
 
变量声明怎么能用type呢?type Infomation = record ... end; //type后面要有end;const Info: Infomation = ......
 
同意楼上的
 
typeInfomation=record Planet:string[8]; R:real; RCycle:real; PictureFileName:string[68];end;const Info:Infomation=( '水星',2440,58.65,'水星.bmp',... '火星',3395,1.0257,'火星.bmp');
 
后退
顶部