#include #include #include "binary_node.h" using namespace std; vector v; void PrintV(); int main() { v.push_back(new binary_node(true, false)); v.push_back(new binary_node(v[0])); v.push_back(new binary_node(!v[1])); v.push_back(new binary_node(true, true)); v.push_back(new binary_node(!v[3])); v[3].Reverse(); PrintV(); v.pop_back(); PrintV(); return 0; } void PrintV() { cout << "vector v (global vector)" << endl << "-------------------------------------" << endl; for(unsigned int i = 0; i < v.size(); i++) { cout << "[" << i << "] => "; v[i].PrintVal(); } cout << "\n"; }