ãã¼ã ãã¼ã¸ã¯ãã¡ãã«å¼ã£è¶ãã¾ããã http://dixq.net/ ä»æ¥ æ¨æ¥ - Remical Soft -
ãThe International Obfuscated C Code Contestãã¨ããé¢ç½ãã³ã³ãã¹ããããã¾ãã 1984å¹´ããè¡ããã¦ãããã®ã³ã³ãã¹ãã¯ãã©ãã ãèªã¿ã«ããCè¨èªããã°ã©ã ãæ¸ããã競ããã®ã§ãã wikipediaã§ã¯ã以ä¸ã®ããã«èª¬æããã¦ãã¾ãã IOCCCã¨ã¯ãThe International Obfuscated C Code Contestï¼å½ééªæªãªCã³ã¼ãã³ã³ãã¹ãï¼ãã®ç¥ç§°ãæ±ãèªã¿ã¥ããCè¨èªã³ã¼ããããã¦æ¸ãããã®æ±ãã競ãã¨ããCè¨èªããã«ã¼ã®å¥ç¥ã§ãããããããã æ±ããã°ããã¨ããããã§ã¯ãªããç®ã«ããç¬éã®ã¤ã³ãã¯ããå®è¡çµæã®ç¾ãããªã©ããã¾ãã¾ãªè¦å ã§ã¢ã¼ãã£ã¹ãã£ãã¯ãªãã®ãé¸ã°ãããå¤ãã®ã³ã¼ãã¯ããããå ¨ãCè¨èªã«è¦ããªããã³ã¼ãå ¨ä½ãã¢ã¹ãã¼ã¢ã¼ãã«ãªã£ã¦ãããã®ãªã©ãå ¸åçã§ããã 第ä¸å大ä¼ã¯1984å¹´ã«è¡ããã
Indian Hill Style Manual (ver. 6.1 + japanese translation) ããã°ã©ã è¨èªã«ã¯ããã¦ãããããã®èªç±åº¦ããã£ã¦ã åãåä½ãããããã°ã©ã ãããããã«æ¸ããããã¾ãã ãã¨ãã° C ã®å ´åã¯ç©ºç½ãã©ã®ããã«ããããã¨ãã ãã¬ã¼ã¹ (æ¥æ¬ã§ã¯ä¸ã«ãã³ã¨ãã°ãã { } ã®ãã¨) ãã©ãã«æ¸ããã¨ãã ããåé¡ã«ãªãã¾ãã ãããããã¡ããã¡ãã«ããã¨è¨èªä»æ§ä¸ã¯åé¡ããªãã¦ãã èªã¿ã«ãããªãã®ã§ããªãã¹ã reasonable ãªè¦ç´ãä¸è²«ãã¦ç¨ããã¹ãã§ãã Indian Hill Style Manual 㯠C è¨èªã®ã¹ã¿ã¤ã«ã«ã¤ãã¦ã®æ¨æºç (ãããããå¤å ¸çã¨ããã¹ãããããã¬ã) ãªè¦ç´ãè¨è¿°ããææ¸ã§ãã é¦è¨³ãã¿ããã¨ããªãã®ã§ãç§(è±ç°è±å¸) ã¨2åã§è¨³ãã¦ã¿ã¾ããã cstyle-ja.htm: Japanes
åå ¥ä¸å¯è½ãªé¢æ°ã C ã§å®è£ ãã ä¸åº¦å®è¡ãããäºåº¦ã¨ä¸èº«ãå®è¡ã§ããªããªãåå ¥ä¸å¯è½ãªé¢æ°ã C ã§å®è£ ãã¦ã¿ã¾ããé常ããã®ãããªé¢æ°ã¯ã·ã³ã°ã«ãã³ãªã©ã®éçãªãã¼ã¿ã®åæåã«ä½¿ãã¾ãããããã§ã¯ãã¼ã¿ã«ã¤ãã¦ã¯èããªããã¨ã«ãã¾ãã static å¤æ°ããã©ã°ã«ä½¿ã ã¾ãã¯æãåç´ãªæ¹æ³ããè¦ã¦ããã¾ãã次ã®é¢æ°ã¯ static å¤æ°ããã©ã°ã«ä½¿ã£ã¦åå ¥ãé²ãã§ãã¾ããå³å¯ã«è¨ãã°é¢æ°ãã®ãã®ã«ã¯å ¥ã£ã¦ãã¾ã£ã¦ãã¾ãããããã§æ°ã«ããªããã¨ã«ãã¾ãã void once(void) { static int entered; // æå㯠0 if (entered == 1) { // ãã§ã«å ¥ã£ããã¨ãããå ´å㯠return; // ããåºã } entered = 1; // ååã®å ´åã®ã¿ãä½ããå®è¡ãã } ãã®æ¹æ³ã¯ã·ã³ã°ã«ã¹ã¬ããã®ããã°ã©ã ã§ã¯ãã¾ãåãã¾ãããã
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}