cis22c/03-lists/StudentList.h
2024-04-28 11:54:46 -07:00

30 lines
650 B
C++

// Specification file for the StudentList class
// Written by: Iurii Tatishchev
// Reviewed by: Iurii Tatishchev
// IDE: CLion
#ifndef STUDENTLIST_H
#define STUDENTLIST_H
#include "ListNode.h"
class StudentList {
private:
ListNode *head; // List head pointer
int count; // To keep track of the number of nodes in the list
public:
StudentList(); // Constructor
~StudentList(); // Destructor
// Linked list operations
int getCount() const { return count; }
void insertNode(Student);
bool deleteNode(string);
//void searchList() const;
void displayList() const;
};
#endif // STUDENTLIST_H