- #include "LL.h"
- subLL::subLL()
- {
- head=NULL;
- }
- void subLL::add(student s)
- {
- }
- void subLL::displayALL()
- {
- }
- masterLL::masterLL()
- {
- }
- void masterLL::addStudent(student s)
- {
- node* temp;
- node* temp2;
- temp = new node;
- temp->university=s.university;
- temp->next=NULL;
- head->next=NULL;
- if(head==NULL)
- head=temp;
- else
- {
- temp2=head;
- }
- while(temp2->next != NULL)
- {
- temp2=temp2->next;
- cout << "works";
- //temp2->next=temp;
- }
- }
- void masterLL::listStudentsFromUniversity(/*string univ*/)
- {
- }

By: asdf | Date: Nov 3 2008 21:34 | Format: None | Expires: never | Size: 738 B | Hits: 952
Latest pastes
1 days ago
2 days ago
3 days ago
5 days ago
5 days ago