problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | Public 属性 | 所有成员列表
leetcode::ListNode结构体 参考

#include <leetcode.h>

Public 成员函数

 ListNode ()
 
 ListNode (int x)
 
 ListNode (int x, ListNode *next)
 

Public 属性

ListNodenext
 
int val
 

详细描述

在文件 leetcode.h42 行定义.

构造及析构函数说明

◆ ListNode() [1/3]

leetcode::ListNode::ListNode ( )
inline

在文件 leetcode.h46 行定义.

47 : val(0), next(nullptr){};
ListNode * next
Definition: leetcode.h:44

◆ ListNode() [2/3]

leetcode::ListNode::ListNode ( int  x)
inlineexplicit

在文件 leetcode.h49 行定义.

50 : val(x), next(nullptr){};

◆ ListNode() [3/3]

leetcode::ListNode::ListNode ( int  x,
ListNode next 
)
inline

在文件 leetcode.h52 行定义.

53 : val(x), next(next){};

类成员变量说明

◆ next

ListNode* leetcode::ListNode::next

◆ val

int leetcode::ListNode::val

该结构体的文档由以下文件生成: