1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <string> #include <set> #ifndef FREEVARS_H #define FREEVARS_H class word; class freevar { public: freevar(word& w, std::string file); bool check(std::string f) const; void add(std::string f); word& getWord(); private: word& w; std::set<std::string> instances; }; #endif