ã¡ããã©ä»ãinitializerã®é
ç®ãå·çãã¦ããããã®é¨åã¯ãçµæ§é£ãããåããããã説æãããã¨ããã°ãä¸æ£ç¢ºã«ãªã£ã¦ãã¾ãããè¦æ ¼ã«å¿ å®ã§ãããã¨ãæ±ããã¨ãè¦æ ¼ã®ããã«ç¡å³ä¹¾ç¥ã¨ãããæ£ãããåããã«ããæç« ã«ãªã£ã¦ãã¾ãã ãã®ããããªããªãå·çãé²ã¾ãªãã®ã ãããã®ã¾ã¾ã§ã¯ãããªãã®ã§ãã¨ããããã®ããã°ã§ãä½ã解説ããã¦ã¿ããã¨æãã ãã¾ãã¾2chã®ã¹ã¬ã§ãaggregateã®è©±é¡ãåºã¦ããã®ã§ãããã«ã¤ãã¦ããªããªãè¤éãªé¨åãã解説ããã Cè¨èªã§ã¯ãé
åãæ§é ä½ï¼Cè¨èªã®ç¨èªï¼ãåæåãªã¹ãã§åæåã§ããã struct Foo { int x ; int y ; } ; struct Foo foo = { 1, 2 } ; åããã¨ã¯ãC++ã§ãã§ããããã ããC++ã«ã¯ãæ§é ä½ãã¨ãããã®ã¯ãªãããã¹ã¦ãã¯ã©ã¹ã§ãããC++ã§ã¯ãããç¹æ®ãªå¶éãæºãããé
å
{{#tags}}- {{label}}
{{/tags}}