質問するのはこれが初めてです。私は外国人なので、私の質問を説明するのは少し難しいです。多分私のタイトルも間違っている...コードを見てみましょう:
クラスを定義したとします。
class Test
{
public:
Test();
};
int main()
{
Test *pointer = new Test(); //what's the difference between these two ways,
Test test; //if the two ways are the same, which one is better under what
pointer = &test; //circumstance?
}
皆さんが私の言っていることを理解し、助けてくれることを願っています。