S
stonny
Hi, I saw a program like the following:
*******************************************
class Image
{
public:
...
Private:
...
};
Image * imagePtr;
imagePtr = new Image();
....
delete imagePtr;
*********************************************
Why the sentence is: image = new Image()?
I thought it should be : image = new Image{}.
Thanks
Stonny
*******************************************
class Image
{
public:
...
Private:
...
};
Image * imagePtr;
imagePtr = new Image();
....
delete imagePtr;
*********************************************
Why the sentence is: image = new Image()?
I thought it should be : image = new Image{}.
Thanks
Stonny