I have my struct as below and I stored it by vector fruit in main
struct fruit_t { char fruit_name[MAX_LENGTH];