program procedureDemo;
#include ("stdlib.hhf")
static
inputString: string;
procedure sayHelloWorld( hello:string );
begin sayHelloWorld;
stdout.put("hello, ", hello, nl);
end sayHelloWorld;
begin procedureDemo;
str.alloc( @size(char) * 80 );
mov(eax, inputString);
stdout.put("What's your name: ");
stdin.readLn();
stdin.gets( inputString );
stdin.flushInput();
sayHelloWorld( inputString );
str.free( inputString );
end procedureDemo;
HLA中的函数及调用
最新推荐文章于 2023-01-14 21:11:08 发布