mardi 27 juin 2017

how to declare array with variable size in header file?

I have a struct and I want to have a array from struct but size of array (in this: size_array) calculate in cpp file! are there any way for handling this issue?

test.h
struct info_struct{
u_int16_t dl;
u_int16_t up;
};
extern info_struct array_data[size_array];

Aucun commentaire:

Enregistrer un commentaire