2006å¹´12æ06æ¥23:30 ã«ãã´ãªLightweight Languages goto or not goto, that's the question. ãããããã®ã¯ããã¯ãå ·ä½ä¾ããã£ãæ¹ãããããããã¨æãã GOTOã使ã£ã¦ããããã§ããï¼ï½æªæ ã®ããã°ã©ã ããæ°äººããã°ã©ãã«è³ªåãåãããå¦çã®æµããã©ãæ¸ãããããã®ãåãããªãã¨ããã ãGOTO ã使ã£ããããããããªãã®ï¼ã ãGOTO ã使ã£ã¦ããããã§ããï¼ã ããããã®ã¯ãå¤éã«ã¼ãããæããããå¦çãéä¸ã§çµãã£ãå¾ã«å¾å¦çããããå ´åã for (y = 0; y < height; y++){ for (x = 0; x < width; x++){ setPixel(img, x, y, pix[offset++]); if (offset == npix) goto DONE; } } DONE
{{#tags}}- {{label}}
{{/tags}}