Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- const int N=5;
- class table
- {
- public:
- table(const int N);
- ~table();
- void SetVariable (const int IndexOfVariable
- ,const bool NewValue);
- bool GetVariableValue(const int IndexOfVariable);
- private:
- bool *pole;
- };
- table::table(const int N)
- {
- pole=new bool[N];
- }
- table::~table()
- {
- delete []pole;
- }
- void table::SetVariable(const int IndexOfVariable,
- const bool NewValue)
- {
- pole[IndexOfVariable]=NewValue;
- }
- bool table::GetVariableValue(const int IndexOfVariable)
- {
- return pole[IndexOfVariable];
- }
- class Node
- {
- public:
- virtual bool Evaluate()=0;
- };
- struct uzel
- {
- };
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment