I have a struct named myStruct which has the following

Code:
strcut myStruct() {

int code
string keyval
}
I then loaded a txt file into myStruct

finally I inserted myStruct into a bintree object which I defined in another header file.

How do I print the data using the bintree??

For example if I was using a vector, I would use

Code:
cout << vector[i].code;