decstruct.txt

来自「It is an ebook about data structures,mai」· 文本 代码 · 共 22 行

TXT
22
字号
How to declare a structure of a linked list? 

Discuss it!          



#include <stdio.h>
#include <stdlib.h>

struct linkedList{
    int element;
    struct linkedList* next; 
};

typedef struct linkedList* List; // do typedef, better use List instead of struct linkedList*




Discuss it!          
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?