Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Node.h"
- Node::Node(string first, double grade)
- {
- firstName = first;
- finalGrade = grade;
- nextS = NULL;
- }
- void Node::setNext(Node* node)
- {
- nextS = node;
- }
- Node* Node::getNext()
- {
- return nextS;
- }
- void Node::print()
- {
- cout << "First Name: " << firstName << endl;
- cout << "Grade: " << finalGrade << endl;
- cout << "Student ID: " << ID << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement