program MouseInput;
Uses WinCrt,WinMouse, Graph;
Var
GraphicsDriver, GraphicsMode,
ErrCode : smallint;
x, y: shortstring;
Begin
x:=GetMouseX;
Y:=GetMouseY;
Writeln('Initialising Graphics, please wait...');
GraphicsDriver := Detect;
InitGraph(GraphicsDriver, GraphicsMode,'');
GetmouseX();
GetmouseY();
OuttextXY(0,0,x);
readln();
end.
它给了我错误:23 / 20 mouse.pas 错误:不兼容的类型:得到“WORD”预期“SHORTSTRING”但我不知道如何更改它,因此它可以工作,因为 GetmouseX 需要是 Word。