COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
|
#include <iostream>
Go to the source code of this file.
Classes | |
struct | Node |
Functions | |
void | delete_head (Node *&head) |
void | delete_list (Node *&head) |
void | delete_node (Node *after) |
Node * | find (Node *head, int num) |
Node * | find_prev (Node *head, int num) |
Node * | get_item (Node *head, int k) |
int | get_option () |
void | head_insert (Node *&head, int num) |
void | insert (Node *after, int num) |
void | insert_sorted (Node *&head, int num) |
int | main () |
void | option_delete (Node *&head) |
void | option_get (Node *head) |
void | option_insert (Node *&head) |
void | print_list (Node *head) |
void | reverse (Node *&head) |
void delete_head | ( | Node *& | head | ) |
Definition at line 77 of file ex4ex5.cpp.
References Node::next.
Referenced by delete_list(), and option_delete().
void delete_list | ( | Node *& | head | ) |
Definition at line 147 of file ex4ex5.cpp.
References delete_head().
Referenced by main().
void delete_node | ( | Node * | after | ) |
Definition at line 89 of file ex4ex5.cpp.
References Node::next.
Referenced by option_delete().
Definition at line 62 of file ex4ex5.cpp.
References Node::info, and Node::next.
Referenced by main(), option_delete(), and search_phonebook().
Definition at line 43 of file ex4ex5.cpp.
References Node::info, and Node::next.
Referenced by insert_sorted(), and option_delete().
Definition at line 175 of file ex4ex5.cpp.
References Node::next.
Referenced by option_get().
int get_option | ( | ) |
Definition at line 96 of file ex4ex5.cpp.
Referenced by main().
void head_insert | ( | Node *& | head, |
int | num ) |
Definition at line 23 of file ex4ex5.cpp.
References Node::info, and Node::next.
Referenced by insert_sorted().
void insert | ( | Node * | after, |
int | num ) |
Definition at line 33 of file ex4ex5.cpp.
References Node::info, and Node::next.
Referenced by insert_sorted().
void insert_sorted | ( | Node *& | head, |
int | num ) |
Definition at line 105 of file ex4ex5.cpp.
References find_prev(), head_insert(), and insert().
Referenced by main(), and option_insert().
int main | ( | void | ) |
Definition at line 203 of file ex4ex5.cpp.
References delete_list(), get_option(), insert_sorted(), option_delete(), option_get(), option_insert(), print_list(), and reverse().
void option_delete | ( | Node *& | head | ) |
Definition at line 124 of file ex4ex5.cpp.
References delete_head(), delete_node(), find(), and find_prev().
Referenced by main().
void option_get | ( | Node * | head | ) |
Definition at line 188 of file ex4ex5.cpp.
References get_item(), and Node::info.
Referenced by main().
void option_insert | ( | Node *& | head | ) |
Definition at line 115 of file ex4ex5.cpp.
References insert_sorted().
Referenced by main().
void print_list | ( | Node * | head | ) |
Definition at line 11 of file ex4ex5.cpp.
References Node::info, and Node::next.
Referenced by main().
void reverse | ( | Node *& | head | ) |
Definition at line 156 of file ex4ex5.cpp.
References Node::next.
Referenced by main().