COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
|
#include <iostream>
#include <string>
#include <sstream>
Go to the source code of this file.
Classes | |
struct | Node |
Functions | |
void | build_sorted_linkedlist (Node *&headptr1, int input) |
Node * | last_node_greater_than (Node *currentptr, int input) |
void | linkedlist_int (Node *&headptr1) |
int | main () |
void | print_linked_list (Node *headptr1) |
void | recursive_remove_dups (Node *headptr1) |
void | remove_dups_negative_nums (Node *&headptr1) |
void build_sorted_linkedlist | ( | Node *& | headptr1, |
int | input ) |
Definition at line 11 of file 3.cpp.
References Node::nextptr, and Node::value.
Referenced by linkedlist_int(), and main().
Definition at line 110 of file 3.cpp.
References last_node_greater_than(), Node::nextptr, and Node::value.
Referenced by last_node_greater_than().
void linkedlist_int | ( | Node *& | headptr1 | ) |
Definition at line 46 of file 3.cpp.
References build_sorted_linkedlist(), Node::nextptr, and Node::value.
Referenced by main().
int main | ( | void | ) |
Definition at line 157 of file 3.cpp.
References build_sorted_linkedlist(), linkedlist_int(), Node::nextptr, print_linked_list(), remove_dups_negative_nums(), and Node::value.
void print_linked_list | ( | Node * | headptr1 | ) |
Definition at line 67 of file 3.cpp.
References Node::nextptr, and Node::value.
Referenced by main().
void recursive_remove_dups | ( | Node * | headptr1 | ) |
Definition at line 141 of file 3.cpp.
References Node::nextptr, recursive_remove_dups(), and Node::value.
Referenced by recursive_remove_dups().
void remove_dups_negative_nums | ( | Node *& | headptr1 | ) |
Definition at line 81 of file 3.cpp.
References Node::nextptr, and Node::value.
Referenced by main().