注册 登录
编程论坛 Delphi论坛

[求助]Missing operator or semicolon 问题

nianshao 发布于 2007-07-31 10:41, 3149 次点击
program Project2;

{$APPTYPE CONSOLE}

uses
SysUtils, windows;

Var WinDir ,currDirchar ;

begin
New(WinDir); //Allotment memory space
New(currDir); //Allotment memory space
GetWindowsDirectory(WinDir,255); //Install the catalogue to the windows to put WinDir
WinDir
GetCurrentDirectory(255,currDir); // Put the current catalogue to the currDir
WriteLn('The Windows system document catalogue be: ' ,WinDir); //the result
WriteLn('the document cataogue is :' ,CurrDir); //the result
//Dispose(WinDir);
//Dispose(currDir);
ReadLn;

end.


=======================
出现问题 大家帮忙
Missing operator or semicolon

如何解决??

[此贴子已经被作者于2007-7-31 10:41:54编辑过]

1 回复
#2
volte2007-08-01 09:42

最繁一些人乱改别人代码
改了后,还不知道错误,
很明显,少了个end结束语句。

1