typedef struct node { int data; struct node *next; } NodeType;
时间: 2024-03-12 07:26:11 浏览: 91
struct数据结构例程教案
This is a definition of a struct called "node" that has two members: an integer data member called "data" and a pointer to another node struct called "next". The struct is typedef'd as "NodeType" for convenience. This struct can be used to create linked lists, where each node contains a piece of data and a pointer to the next node in the list.
阅读全文