Original Post
Can I make a dynamic array of classes? Meaning: I declare a class, with a non standart constructor; Then during runtime I recieve info on how many such Objects I need. Should the defintion look something like that: In such a situation how do I call the custom constructor? Is this in any way correct?
typedef class
{
public:
int x;
int y;
my_class(int a, int b);
~my_class();
void a_function();
private:
void another_function();
}my_class;
cin >> number;
my_class *array;
array = new my_class[number] //?????