Home > Back-end >  C the structure definition in C language how to write?
C the structure definition in C language how to write?

Time:11-30

Typedef struct _b
{
ULONG64 logsize;
B}


Typedef struct _a: b
{
ULONG64 Unknown [3].
} a

Everyone a great god, the C + + code in the C language how to write? C language error: error C2059: syntax error: ':'

CodePudding user response:

C no inheritance,

Typedef struct _a
{
ULONG64 logsize;
ULONG64 Unknown [3].
} a

CodePudding user response:

Typedef struct _a
{
B _b;
ULONG64 Unknown [3].
} a;

Members do,

CodePudding user response:

refer to the second floor smwhotjay response:
typedef struct _a
{
B _b;
ULONG64 Unknown [3].
} a;

Do members,


Members, memory structure?

CodePudding user response:

Error: error C2016: C requires that a struct or the union has the at further one member
The error C2061: syntax error: identifier 'b'

CodePudding user response:

Settled,
Another PVOID * StackMax in C + + is in C?
  • Related