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 发布
本文演示如何使用程序记录来管理学生信息,包括姓名和年龄的存储与输出。
2082

被折叠的 条评论
为什么被折叠?



