Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class node_type
- {
- public:
- char* name;
- float gpa;
- node_type *next;
- node_type() //constructor, run on create of node_type object
- {
- name = new char[10]; //reserves some memory, points name at it
- }
- ~node_type() //destructor, run on delete of node_type object
- {
- delete name; //gives back the reserved memory
- }
- };
Add Comment
Please, Sign In to add comment