Possible Duplicate:
c++ Object array initialization without default constructor
I have structure:
struct aa
{
int a;
char b [255];
aa(int number)
{
cout<<"creating structure "<<number<<"\n";
}
~aa()
{
cout<<"destroying structure";
}
};
I'm trying to create array of this structure, but this doesn't work:
aa *ss = new aa[3](1);
This gives me a compiler error.
How do I do it?