program recordDemo;
#include ("stdlib.hhf")
type
Student: record
sname: string;
sage: int32;
endrecord;
var
Me: Student;
begin recordDemo;
str.alloc( @size(char) * 12 );
mov(eax, Me.sname);
str.put(Me.sname, "yang");
mov(22, Me.sage);
stdout.put("Hello, ", Me.sname, " Welcome to the HLA!", nl);
stdout.put("And your age = ", Me.sage, nl);
str.free( Me.sname );
end recordDemo;
HLA中的记录
最新推荐文章于 2022-02-26 15:57:27 发布