D
Daniel Fortin
Hi, I was wondering if anyone knows how to overload operator new to
use a parameterized constructor.
Something like this:
class class1
{
public:
class1();
class1(int parameter1);
}
int main()
{
int number=32;
class1 * temp;
temp= new class1[number](parameter1);
}
Thanks
use a parameterized constructor.
Something like this:
class class1
{
public:
class1();
class1(int parameter1);
}
int main()
{
int number=32;
class1 * temp;
temp= new class1[number](parameter1);
}
Thanks