I have a question related to C++ arrays and structs. I have a struct:
struct npc_next_best_spot{
npc_next_best_spot(): x({0}),
y({0}),
value(-1),
k(0),
i({0}),
triple_ress({0}),
triple_number({0}),
bigI(0)
{}
int x[3];
int y[3];
double value;
int k;
int i[3];
int triple_ress[3];
int triple_number[3];
int bigI;
};
but this gives the warning
"list-initializer for non-class type must not be parenthesized".
So how can I make sure that these arrays are initialized with 0
values for all?