hi,
sorry if this is a stupid question, i am a total newbie:)
i want to dynamically allocate an object to a pointer and i write:
class_test *ptr = new class_test();
class_test *ptr = new class_test;
both of them compile:confused:....are they the same thing{meaning that the second calls the default constructor}?
which one should i use?
thanks:)