linked-list-cycle 1.0.0
Linked List Cycle
Loading...
Searching...
No Matches
ListNode Struct Reference

Definition for singly-linked list. More...

Collaboration diagram for ListNode:

Public Member Functions

 ListNode (int x)
 

Data Fields

int val
 
ListNodenext
 

Detailed Description

Definition for singly-linked list.

Definition at line 8 of file main.cpp.

Constructor & Destructor Documentation

◆ ListNode()

ListNode::ListNode ( int  x)
inline

Definition at line 12 of file main.cpp.

12: val(x), next(NULL) {}
int val
Definition main.cpp:10
ListNode * next
Definition main.cpp:11

Field Documentation

◆ next

ListNode* ListNode::next

◆ val

int ListNode::val

Definition at line 10 of file main.cpp.

Referenced by print_list().


The documentation for this struct was generated from the following file: