Guest User

Untitled

a guest
Oct 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class node_type
  2. {
  3. public:
  4. char* name;
  5. float gpa;
  6. node_type *next;
  7.  
  8. node_type() //constructor, run on create of node_type object
  9. {
  10. name = new char[10]; //reserves some memory, points name at it
  11. }
  12.  
  13. ~node_type() //destructor, run on delete of node_type object
  14. {
  15. delete name; //gives back the reserved memory
  16. }
  17. };
Add Comment
Please, Sign In to add comment