linear_list/linked_list/list_node.cpp
void output_list(ListNode* list)
{
    while (list != nullptr)
    {
        std::cout << list->val << std::endl;
        list = list->next;
    }
}
/**
 * Output the values of the given link list.
 */
Output the values of the given link list.
Output the values of the given link list .
void output_list(ListNode* list)
{
    while (list != nullptr)
    {
        std::cout << list->val << std::endl;
        list = list->next;
    }
}
void output_list ( ListNode * list ) { while ( list != nullptr ) { std :: cout << list -> val << std :: endl ; list = list -> next ; } }
Output the values of the given link list.
Output the values of the given link list .