结构体中怎样定义后继结点(next)
想利用结构体实现树的相关操作 但是不知道这样里来定义结构体的后继在下面的代码中
程序代码:
;#Mode=CON .386 .model flat, stdcall option casemap:none include Irvine32.inc include user32.inc include windows.inc include kernel32.inc includelib user32.lib includelib kernel32.lib includelib masm32.lib include macro.asm node struct Name_ BYTE 20 dup(0) Year_ WORD ? ;next node ends .data xyz node <> .code main proc mov ecx, lengthof xyz.Name_ mov edx, offset xyz.Name_ call ReadString call Crlf call WriteString call Crlf call WaitMsg invoke ExitProcess, 0 main endp end main怎样定义它的后继结点
例如 c版
struct node
{
char Name_[20];
int Year_;
struct node * next;
};
试过几个(next ptr node <> next ptr node struct <>)都不行
那位前辈指导下