我开始学习汇编语言,我正在使用“汇编语言艺术”这本书。
我在书中运行一个例子时遇到了问题。下面是程序:
program DemoVars;
#include( "stdlib.hhf" );
static
InitDemo: int32 := 5;
NotInitialized: int32;
begin DemoVars;
// Display the value of the pre-initialized variable
stdout.put( "InitDemo's value is ", InitDemo, n1 );
// Input an integer value from the user and display that value
stdout.put( "Enter an integer value: " );
stdin.get( NotInitialized );
stdout.put( "You entered: ", NotInitialized, n1 );
end DemoVars;当我尝试编译它时,在程序应该打印变量值的地方给出了四个错误,如下所示:
stdout.put: unknown data type
<n1 is type "">.
Near: << > >>
This output type is not supported.
Near: << > >>有人能帮帮我吗?
发布于 2013-07-04 20:21:24
Fix:将n1更改为nl ("which is new line")
https://stackoverflow.com/questions/17469634
复制相似问题