Question: C + + , Visual Studio. I ' m working on a project that holds Rainfall Statistics. It adds a month of statistics, edits a

C++, Visual Studio. I'm working on a project that holds Rainfall Statistics. It adds a month of statistics, edits a month of statistics, and prints a report to the console. I'm currently working on implementing a List.h file into a List.cpp file. List.h: #ifndef LIST_H
#define LIST_H
#include "ListInterface.h"
#include "Node.h"
#include "PrecondViolatedExcept.h"
template
class LinkedList : public ListInterface {
private:
Node* headPtr; // Pointer to first node in the chain
int itemCount; // Current count of list items
Node* getNodeAt(int position) const;
public:
LinkedList();
LinkedList(const LinkedList& aList);
virtual ~LinkedList();
bool isEmpty() const;
int getLength() const;
bool insert(int newPosition, const ItemType& newEntry);
bool remove(int position);
void clear();
ItemType getEntry(int position) const;
void setEntry(int position, const ItemType& newEntry);
};
#include "List.cpp"
#endif Basically I'm not sure how to implement List.H in my List.cpp file. I would appreciate any help and I would greatly appreciate comments.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!