COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
|
#include <iostream>
#include <iomanip>
#include <string>
#include <cctype>
#include <cstdlib>
Go to the source code of this file.
Classes | |
struct | Node |
Functions | |
Node * | create_num_list () |
void | delete_head (Node *&head) |
void | delete_list (Node *&head) |
void | grow_array (char *&array, int &size) |
void | head_insert (Node *&head, int v) |
void | input_num (char *&digits, int &numDigits) |
bool | larger (Node *n1, Node *n2) |
int | list_length (Node *head) |
int | main () |
void | print_list (Node *head) |
void | print_num (Node *head) |
Node * create_num_list | ( | ) |
Definition at line 127 of file largenum.cpp.
References head_insert(), and input_num().
Referenced by main().
void delete_head | ( | Node *& | head | ) |
Definition at line 52 of file largenum.cpp.
References Node::next.
Referenced by delete_list().
void delete_list | ( | Node *& | head | ) |
Definition at line 62 of file largenum.cpp.
References delete_head().
Referenced by main().
void grow_array | ( | char *& | array, |
int & | size ) |
Definition at line 73 of file largenum.cpp.
Referenced by input_num().
void head_insert | ( | Node *& | head, |
int | v ) |
Definition at line 43 of file largenum.cpp.
References Node::next, and Node::value.
Referenced by create_num_list().
void input_num | ( | char *& | digits, |
int & | numDigits ) |
Definition at line 97 of file largenum.cpp.
References grow_array().
Referenced by create_num_list().
Definition at line 194 of file largenum.cpp.
References list_length(), Node::next, and Node::value.
Referenced by main().
int list_length | ( | Node * | head | ) |
Definition at line 175 of file largenum.cpp.
References Node::next.
Referenced by larger().
int main | ( | void | ) |
Definition at line 226 of file largenum.cpp.
References create_num_list(), delete_list(), larger(), print_list(), and print_num().
void print_list | ( | Node * | head | ) |
Definition at line 16 of file largenum.cpp.
References Node::next, and Node::value.
Referenced by main().
void print_num | ( | Node * | head | ) |
Definition at line 29 of file largenum.cpp.
References Node::next, and Node::value.
Referenced by main().