sidrs

FDS (LV) Ass 6 - Linked List (Pinnacle Club)

Sep 12th, 2024
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. class Node{
  6. private:
  7.     int prn;
  8.     string name;
  9.     Node *next;
  10. public:
  11.     Node (int prn, string &name){
  12.         this->prn = prn;
  13.         this->name = name;
  14.         next = nullptr;
  15.     }
  16. };
  17.  
  18.  
  19. int main() {
  20.  
  21.     return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment