Code blocks got an upgrade yesterday !
I think it enables c++11 by default .
(And uses the system default compiler anyway....)
Type: Posts; User: manasij7479
Code blocks got an upgrade yesterday !
I think it enables c++11 by default .
(And uses the system default compiler anyway....)
#include<memory>
That's somewhat extreme!
Yes, as long you don't delete it.
If that is not what you intend, either don't use pointers or use a smart pointer, as said by the others.
Yes.
You have to allocate memory for the object.
b=new a();