problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
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){};

引用了 next , 以及 val.

被这些函数引用 ListNode().

◆ ListNode() [2/3]

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

在文件 leetcode.h49 行定义.

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

引用了 next , 以及 val.

◆ ListNode() [3/3]

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

在文件 leetcode.h52 行定义.

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

引用了 ListNode(), next , 以及 val.

类成员变量说明

◆ next

◆ val


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