数据结构:链表的建立和打印

#include "stdafx.h" struct node { int num; struct node *next;//指向下一节点 }; //建立链表 struct node * creat() { struct node *head, *temp, *newp;//分别表示头节点、中间节点、新节点 int n;//节点数据 head = temp
相关文章
相关标签/搜索