Public paste
asdfa
By: asdfa | Date: Nov 3 2008 21:35 | Format: C++ | Expires: never | Size: 975 B | Hits: 998

  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class student
  7. {
  8.       public:
  9.              string name;
  10.              string university;
  11. };
  12.  
  13. class subLL
  14. {
  15.       public:
  16.               class node
  17.               {
  18.                     public:
  19.                            student data;
  20.                            node *next;
  21.               };
  22.              
  23.              node* head;
  24.              
  25.  
  26.              subLL();
  27.              void add(student s);
  28.              void displayALL();
  29. };
  30.  
  31.  
  32. class masterLL
  33. {
  34.       public:
  35.               class node
  36.               {
  37.                     public:
  38.                            string university;
  39.                            subLL students;
  40.                            node *next;
  41.               };
  42.              
  43.               node *head;
  44.              
  45.              masterLL();
  46.              void addStudent(student s);
  47.              void listStudentsFromUniversity(/*string univ*/);
  48. };