I am new to programming. My question is: is it possible to store a four-member struct into a binary search tree? I have an input txt file containing data that I have already read. The input file looks like this:
30005886 Vanessa Yorson 19601202
30007518 Cara Yarrow 19490413
30011718 Sally Mooney 19760111
so this is my struct:
struct dataRec {
int ssn;
string firstName;
string lastName;
int dob;
};
how would I go about storing this info into a BST? Thanks!