Advertisement
Mikhail-Podbolotov

Untitled

May 8th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #pragma once
  2. #include <string>
  3. #include <iostream>
  4. #include <fstream>
  5. using namespace std;
  6. struct Function {
  7.     string name;
  8.     bool isRecursive = false;
  9.     Function* Next;
  10. };
  11.  
  12. class List {
  13. private:
  14.     Function* Start;
  15.     Function* End;
  16. public:
  17.     List();
  18.     ~List();
  19.     void addFunction(string& name, bool isRecursive);
  20.     void PrintR(std::ofstream& file2);
  21.     void PrintNR(std::ofstream& file2);
  22.     bool InList(string& name);
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement