This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Course | |
{ | |
String subject1; | |
String subject2; | |
String subject3; | |
public Course(String sub1, String sub2, String sub3) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template < typename F> | |
void visitaPerLivelli(BinaryTree<F>* t){ | |
codePointer<F> C; | |
C.incoda(t->key()); | |
while(!C.codavuota()){ | |
F nodo = C.leggicoda(); | |
C.fuoricoda(); | |
BinaryTree<F>* nodoAlbero = t->lookupNode(nodo); | |
cout << nodoAlbero->key() << "\n"; |
NewerOlder