は、C++の 'new'演算子についての詳細な説明が必要です。'new'演算子の理解
int *n = new int(10); // initialize the pointer to integer as '10'
cout << *n; // o/p -> 10
が、これは動作しません:以下の作品がなぜ は誰かが説明できますか?
int p = new int (10); // error: invalid conversion from 'int*' to 'int' [-fpermissive]
なぜ、2番目のものが動作すると思われますか? 'new'はポインタを返します。 – NathanOliver
重複? https://stackoverflow.com/questions/2726356/the-new-operator-in-c-pointer-question – Twtheo
[完全なC++ブックガイドとリスト](https://stackoverflow.com/questions/388242/the- – molbdnilo