macrofish

ldosadasd

Apr 29th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int N=5;
  5.  
  6. class table
  7. {
  8. public:
  9. table(const int N);
  10. ~table();
  11. void SetVariable (const int IndexOfVariable
  12. ,const bool NewValue);
  13.  
  14. bool GetVariableValue(const int IndexOfVariable);
  15. private:
  16. bool *pole;
  17. };
  18.  
  19. table::table(const int N)
  20. {
  21. pole=new bool[N];
  22. }
  23.  
  24. table::~table()
  25. {
  26. delete []pole;
  27. }
  28.  
  29. void table::SetVariable(const int IndexOfVariable,
  30. const bool NewValue)
  31. {
  32.  
  33. pole[IndexOfVariable]=NewValue;
  34.  
  35. }
  36.  
  37. bool table::GetVariableValue(const int IndexOfVariable)
  38. {
  39.  
  40. return pole[IndexOfVariable];
  41. }
  42.  
  43.  
  44.  
  45.  
  46.  
  47. class Node
  48. {
  49. public:
  50. virtual bool Evaluate()=0;
  51.  
  52. };
  53.  
  54. struct uzel
  55. {
  56.  
  57. };
  58. int main()
  59. {
  60.  
  61. return 0;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment