#include <stdio.h>
#include <stdlib.h>
typedef struct node
{
int num;
char sex;
struct node* next;
}Node;
Node* init_list(int);
int main(int argc, char const *argv[])
{
Node* head;
head = init_list(10);
head = head->next;
//遍历节点
while(head->next != NULL)
{
printf("%d %c\n",
c语言创建单链表
最新推荐文章于 2025-03-05 13:52:58 发布