Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- struct AdjPoint {
- int value;
- AdjPoint* next = nullptr;
- };
- struct Point
- {
- int number;
- AdjPoint* First = nullptr;
- AdjPoint* Last = nullptr;
- Point* NextPoint = nullptr;
- };
- class List
- {
- private:
- Point* Start;
- Point* End;
- public:
- List();
- ~List();
- Point* getStart();
- int GetLast();
- void addPoint();
- void addAdjPoint(int);
- void Print(std::ofstream& file);
- void Read(std::ifstream& file);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement