C++ãä»ã®ãªãã¸ã§ã¯ãæåè¨èªã¨æ¯ã¹ã¦é£ããã®ã¯ããã¯ãã¡ã¢ãªç®¡çãããã°ã©ããèªåã§ããªããã°ãããªãç¹ã ã¨æãã¾ãããããã注æããªãã¨ãåé¤ãå¿ããããåããªãã¸ã§ã¯ãã2度åé¤ãã¦ãã¾ãã¨ããã¨ã©ã¼ãçºçãã¾ãããã®ãã¼ãã§ã¯ããªãã¸ã§ã¯ãããå¤ãªãã¸ã§ã¯ããã¨ãåç §ãªãã¸ã§ã¯ããã¨ããã«ãã´ãªã«åãã詳細è¨è¨ã®æ®µéã§æ³¨æãã¹ãç¹ãæ´çãã¦ããããã¨æãã¾ãã 0. ã¯ããã« ç§èªèº«ä»ã¾ã§ããã¤ãã®ããã°ã©ãã³ã°è¨èªã使ã£ã¦ãã¾ããããC++ ãä»ã®ãªãã¸ã§ã¯ãæåè¨èªã¨æ¯ã¹ã¦é£ããã®ã¯ããã¯ãã¡ã¢ãªç®¡çãããã°ã©ããèªåã§ããªããã°ãããªãç¹ã ã¨æãã¾ããä¾ãã°ã Person* person = new Person(); ã¨çæãããªãã¸ã§ã¯ãã¯ã使ãçµãã£ãã次ã®ããã«åé¤ããªããã°ãªãã¾ããã delete person; çæãã¦ããåé¤ãããªãç°¡åãªã®ã§ãããå®éã«
{{#tags}}- {{label}}
{{/tags}}