📜  创建节点 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:49.552000             🧑  作者: Mango

代码示例3
//node structure
class Node {
  public int data;
  public Node next;
};

class LinkedList {
  public Node head;
  //constructor to create an empty LinkedList
  public LinkedList(){
    head = null;
  }  
};