C++11 ã®æ°ããæ©è½ã«ãå³è¾ºå¤åç §ãã¨ãã ã¼ãã»ãã³ãã£ã¯ã¹ããããã¾ãã ã°ã°ãã°ãããã«é¢ãã¦è§£èª¬ããã¦ããµã¤ããçµæ§ããã¾ãããä¸è¬çã«ã¯ç解ãã¥ãããã®ã¨ãã¦æ±ããã¦ãã¿ããã§ãã ããããèªåããããããã¾ããã§ããâ¦â¦ã ã§ãã®ã§ãä»åã¯è³ã£ã¦ã·ã³ãã«ãªé åã¯ã©ã¹ã使ã£ã¦ãããããä½ãæå³ããã®ããç¥ãããã¨æãã¾ãã å¾æ¥ã¯ãã³ãã¼ã ã¾ãã¯ããå³è¾ºå¤åç §ãã¨ãã ã¼ãã»ãã³ãã£ã¯ã¹ãã使ããªãã³ã¼ããè¦ã¦ã¿ã¾ãã #include <iostream> using namespace std; struct Array { typedef int ValueType; ValueType *p; int length; // ã³ã³ã¹ãã©ã¯ã¿ Array(int _length) : p(new ValueType[_length]) , length(_length) {
{{#tags}}- {{label}}
{{/tags}}