Public paste
adsf
By: asdf | Date: Nov 3 2008 21:34 | Format: None | Expires: never | Size: 738 B | Hits: 983

  1. #include "LL.h"
  2.  
  3.  
  4. subLL::subLL()
  5. {          
  6.       head=NULL;
  7.      
  8.                      
  9. }                                    
  10.              
  11. void subLL::add(student s)
  12. {          
  13.  
  14.      
  15.    
  16.            
  17. }
  18.            
  19. void subLL::displayALL()
  20. {
  21.            
  22.    
  23. }
  24.  
  25. masterLL::masterLL()
  26. {
  27.  
  28. }
  29.  
  30.  
  31. void masterLL::addStudent(student s)
  32. {    
  33.  
  34. node* temp;
  35. node* temp2;
  36. temp = new node;
  37. temp->university=s.university;
  38. temp->next=NULL;                  
  39. head->next=NULL;
  40. if(head==NULL)
  41. head=temp;
  42. else
  43. {
  44. temp2=head;
  45. }
  46. while(temp2->next != NULL)
  47. {
  48. temp2=temp2->next;
  49. cout << "works";
  50.  
  51. //temp2->next=temp;
  52.  
  53. }
  54. }
  55. void masterLL::listStudentsFromUniversity(/*string univ*/)
  56. {
  57.  
  58.  
  59.      
  60. }