Duplicar posibles:
Forward declarations of unnamed structdeclarar delante un typedef de una estructura sin nombre
Si tengo
typedef struct tagPAGERANGE
{
int iFirstPage;
int iLastPage;
} PAGERANGE;
puedo reenviar declarar esa manera
struct tagPAGERANGE;
typedef struct tagPAGERANGE PAGERANGE;
Pero lo que tengo es
typedef struct
{
int iFirstPage;
int iLastPage;
} PAGERANGE;
No estoy seguro de cómo puedo hacerlo. Solo quiero mantener un puntero a esta estructura. En este momento estoy atascado con incluir un encabezado bastante sustancial o duplicar la definición de la estructura.
No se parece mucho a C++. ¿Por qué lo etiquetó con la etiqueta "C++"? – Griwes
¿Qué hay de malo en nombrar la estructura? – mydogisbox
C y C++ son idiomas diferentes. ¿Qué idioma estás preguntando? –