i have a problem with my code. list.hpp:28: undefined reference to `vtable for List' i have such a message, so idk what to do with it. Below is an implemenation of two classes:
Graph.hpp
#include <iostream>
#include <fstream>
class Graph {
protected:
int Verticles, Edges;
double ges;
public:
const int& getVerticles() {return Verticles;}
const int& getEdges() {return Edges;}
Graph() {};
virtual ~Graph() {};
virtual void GraphRandom() = 0;
virtual void GraphPrintToFile() const = 0;
};
and List.hpp:
#include "graph.hpp"
#include <memory>
struct OneList
{
int Neighbor, Weight;
OneList* Next;
};
class List: public Graph {
protected:
OneList** GraphList;
public:
void GraphRandom() override;
void GraphPrintToFile() const override;
void ReadFile();
};
Maybe someone will help me, so i can continue doing my task. Thanks