daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "Node.h"
  2.  
  3. Node::Node(string first, double grade)
  4. {
  5.     firstName = first;
  6.     finalGrade = grade;
  7.     nextS = NULL;
  8.    
  9.  
  10.  
  11. }
  12.  
  13. void Node::setNext(Node* node)
  14. {
  15.     nextS = node;
  16. }
  17.  
  18. Node* Node::getNext()
  19. {
  20.     return nextS;
  21. }
  22.  
  23. void Node::print()
  24. {
  25.     cout << "First Name: " << firstName << endl;
  26.     cout << "Grade: " << finalGrade << endl;
  27.     cout << "Student ID: " << ID << endl;
  28. }
RAW Paste Data
Top