Code: Select all
typedef struct _list {
int stacknum;
int stackseq;
} LIST;
LIST data[25];
But it is not compile error in C++.
I wrote code by C. and submit with C, I got compile error.
But C++ is Accept.
What make me compile error in C?
Moderator: Board moderators
Code: Select all
typedef struct _list {
int stacknum;
int stackseq;
} LIST;
LIST data[25];
Code: Select all
typedef struct _list {
int stacknum;
int stackseq;
} LIST;
LIST data[25];
int main() { return 0; }
Code: Select all
// comment