Arrays are effectively obsolete in most modern C++ code, you might consider using a vector instead, which is a dynamically resizable array.
1 2 3 4 5 6 7 8 9 10 11 12
#include <vector>
class AAAA
{
// etc.
};
int main()
{
int size = 3;
std::vector<AAAA> a(size);
}
the size of a vector may be specified when you create it, or you can change its size later on; You also do not need to worry about delete, nor do you need to fret over memory leaks; best of all, vectors are easier to use and to learn about than "raw" arrays.