#include using namespace std; #include "Conjunto.h" int main () { Conjunto conjunto; cout << "Inicialmente: "; if (conjunto.noHayHijoSinHermano()) cout << "no hay hijo sin hermano" << endl; else cout << "hay hijo sin hermano" << endl; for (int dato : {40, 20, 80, 10, 60, 70, 90, 30, 50}) { conjunto.insertar(dato); cout << "Tras insertar " << dato << ": "; if (conjunto.noHayHijoSinHermano()) cout << "no hay hijo sin hermano" << endl; else cout << "hay hijo sin hermano" << endl; } }