123456789101112
typedef struct ProbWays { double *probs ; int length ; }ProbWays; int main() { ProbWays *ways = new ProbWays[]; ways->probs = new double[4]; ways->length = 4 ; delete ways ; }
delete [] ways;
ways->probs