If you don't allocate the memory for it properly you won't be able to use it properly.

How about using a vector?
Code:
#include <vector>

// ...

vector<Variable> myvars;