Shiro Kawai 7/3/2000ååºã3/29/2002æ´æ° ã¾ãã¨ããããã«ãã³ã¯ææ ¢ããããã©ã ãã¨ããããé¢æ°ãã¤ã³ã¿ï¼ç°å¢ãã¼ã¿ ã¨ãããã¨ã§ç´å¾ããããããããSchemeã®ã«ã¼ãæ§æ(do)ã¯è¨±ããªããªãã ãã¡ããã¡ããã¦ãããéä¸ã§è±åºã§ããªããã CãPerlã®forãwhileã®æ¹ããã£ã¨ä½¿ãããããã ã? doãªãã¦ä½¿ããªã? ãããã©ããã£ã¦ã«ã¼ããæ¸ããã ? æ¶ããã«ã¼ã ç°¡åã ãã©ããããããããªä¾ã¨ãã¦ããããªã®ãèãã¦ã¿ããã å ¥åããã¹ãã®è¡æ°ãæ°ããé¢æ°count_linesãæ¸ãããã Cã§æ¸ãã¨ããã°ããããªæãã ã /* ä¾1 */ int count_lines(void) { int count = 0, c; for (c=getchar(); c!=EOF; c=getchar()) { if (c == '\n') count+
{{#tags}}- {{label}}
{{/tags}}