ShawnCoutts
Programmer
I am trying to declare a vector of structs.
i have a header file that has definitions of all my structs and a typedef associated with them.
for some reason this does not work:
can someone explain to me why i keep getting a declaration error?
i have a header file that has definitions of all my structs and a typedef associated with them.
for some reason this does not work:
Code:
vector<HEADER> h;
where HEADER is equal to:
typedef struct header{
char record_type[2];
char sender[5];
char recipient[5];
char file_seq_num[5];
char tax_treatment[1];
char tax_rate[5][3]; //each location holds another array of 3 bytes
char file_create_date[6];
char file_trans_date[6];
char trans_cutoff_time[12];
char utc_time_offset[5];
char spec_ver_num[2];
char international_access_code[12];
char country_code[8];
} HEADER;
can someone explain to me why i keep getting a declaration error?