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) |
int | get_option () |
void | head_insert (Node *&head, int num) |
void | insert (Node *after, int num) |
int | main () |
void | option_delete (Node *&head) |
void | option_insert (Node *&head) |
void | print_list (Node *head) |
void delete_head | ( | Node *& | head | ) |
Definition at line 75 of file build_list_sorted.cpp.
References Node::next.
Referenced by delete_list(), and option_delete().
void delete_list | ( | Node *& | head | ) |
Definition at line 135 of file build_list_sorted.cpp.
References delete_head(), and print_list().
Referenced by main().
void delete_node | ( | Node * | after | ) |
Definition at line 86 of file build_list_sorted.cpp.
References Node::next.
Referenced by option_delete().
Definition at line 61 of file build_list_sorted.cpp.
References Node::info, and Node::next.
Referenced by option_delete().
Definition at line 43 of file build_list_sorted.cpp.
References Node::info, and Node::next.
Referenced by main(), option_delete(), and option_insert().
int get_option | ( | ) |
Definition at line 93 of file build_list_sorted.cpp.
Referenced by main().
void head_insert | ( | Node *& | head, |
int | num ) |
Definition at line 23 of file build_list_sorted.cpp.
References Node::info, and Node::next.
Referenced by main(), and option_insert().
void insert | ( | Node * | after, |
int | num ) |
Definition at line 33 of file build_list_sorted.cpp.
References Node::info, and Node::next.
Referenced by main(), and option_insert().
int main | ( | void | ) |
Definition at line 144 of file build_list_sorted.cpp.
References delete_list(), find_prev(), get_option(), head_insert(), insert(), option_delete(), option_insert(), and print_list().
void option_delete | ( | Node *& | head | ) |
Definition at line 114 of file build_list_sorted.cpp.
References delete_head(), delete_node(), find(), and find_prev().
Referenced by main().
void option_insert | ( | Node *& | head | ) |
Definition at line 101 of file build_list_sorted.cpp.
References find_prev(), head_insert(), and insert().
Referenced by main().
void print_list | ( | Node * | head | ) |
Definition at line 11 of file build_list_sorted.cpp.
References Node::info, and Node::next.
Referenced by delete_list(), and main().