私は構造を持っています:
struct aa
{
int a;
char b [255];
aa(int number)
{
cout<<"creating structure "<<number<<"\n";
}
~aa()
{
cout<<"destroying structure";
}
};
この構造の配列を作成しようとしていますが、うまくいきません:
aa *ss = new aa[3](1);
これにより、コンパイラ エラーが発生します。
どうすればいいのですか?