892 ååï¼ ããã©ã«ãã®åç¡ããã æ稿æ¥ï¼ 2007/09/23(æ¥) 22:19:28 é åã®é·ã(è¦ç´ æ°)ãã³ã³ãã¤ã«æã«è¨ç®ããã«ã¯ã©ããããããã§ããï¼ ã³ã³ãã¤ã©ã®æé©åã¬ãã«ã«ãããã«ã³ã³ãã¤ã«æã«è¨ç®ã«ãªãä¾ã欲ããã§ãã ãããããããããã¾ãã 903 ååï¼ ããã©ã«ãã®åç¡ããã [sage] æ稿æ¥ï¼ 2007/09/23(æ¥) 23:02:30 #include <cstddef> template<typename T, std::size_t N> char (&lengthof_helper_char_array(T (&a)[N]))[N]; #define lengthof(a) (sizeof(lengthof_helper_char_array(a))) 896 ååï¼ ããã©ã«ãã®åç¡ããã æ稿æ¥ï¼ 2007/09/23(æ¥) 22:37:
{{#tags}}- {{label}}
{{/tags}}