æè¿C++ã使ãæéãé·ãã®ã§ããã¼ã£ã¨ C++æ¹å¤æç« ãæ¸ãä¸ãã¦ã¿ãâ¦ã (注ï¼ä»¥ä¸ã®æç« ã«ããã¦ãCè¨èªã¨ã¯C/C++ããããã®ã¨ãèããã ãã) gotoã¯ä»ãã30年以ä¸ãåã®ãã¤ã¯ã¹ãã©å çã«ããæ²æ» éåã® ç²æããã£ã¦ãã©ããªã®ããä»æ¥ã§ã¯è¯ããªããã®ã®ä»£åè©ã®ããã« ãªã£ã¦ãããè¯ããªãã¨ãããã¨ã®ä¸»ãªçç±ã¯ããã°ã©ã ã®æµãã è¦ãã«ãããªããçã®ãããªã®ã ããå®éã®ã¨ããã©ã®ç¨åº¦ã®ãã®ã㯠ããåãããªããCè¨èªã«ããã¦ãä¾ãã°ã«ã¼ãæ§æã使ããã«ãã¹ã¦ã gotoã§ã¾ããªããã¨ããã¨ããã¯ã»ã¨ãã©èªæã«ã確ãã«å¤§å¤ã§ããã ä¾ãã°foræãªãã for (A;B;C) body ã¨ãããã®ã¯ããããå½¢å¼çã« A _continue_for: if (B) goto _break_for; C goto _continue_for; _break_for:; ãã®ããã«å¤
{{#tags}}- {{label}}
{{/tags}}