标签:turn oid 结构体 style ret 数据结构 std code struct
链表是结构体变量与结构体变量链接在一起,怎么链接在一起?通过指针
#include <stdio.h> struct Node{ int data; struct Node* next; }; int main(void) { struct Node node1 = { 1,NULL }; struct Node node2 = { 3,NULL }; struct Node node3 = { 3,NULL }; node1.next = &node2; node2.next = &node3; return 0; }
标签:turn oid 结构体 style ret 数据结构 std code struct
原文地址:https://www.cnblogs.com/cl94/p/12236203.html