COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
|
#include <iostream>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | Node |
Functions | |
void | divide (Node *&head, Node *&second) |
int | list_length (Node *head) |
int | main () |
void | print_list (Node *head) |
void | tail_insert (Node *&head, Node *&tail, int num) |
Definition at line 49 of file ex6.cpp.
References list_length(), and Node::next.
Referenced by main().
int list_length | ( | Node * | head | ) |
int main | ( | void | ) |
Definition at line 69 of file ex6.cpp.
References divide(), print_list(), and tail_insert().
void print_list | ( | Node * | head | ) |
Definition at line 12 of file ex6.cpp.
References Node::info, and Node::next.
Referenced by main().
Definition at line 24 of file ex6.cpp.
References Node::info, and Node::next.
Referenced by main().