A Little Fool

Fool For Free.

博客园 首页 新随笔 联系 订阅 管理

09 2012 档案

摘要:Problem 17 If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used? NOTE: Do not count spaces or h... 阅读全文
posted @ 2012-09-21 01:07 HenryRead 阅读(508) 评论(0) 推荐(0)

摘要:FourCC实际上在C/C++表示一般是4个字节的整数。百度百科里的方法是 #define MAKE_FOURCC(a,b,c,d) \ ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) ) 有一种更简单的方法,直接使用字符来表示FourCC。int fourCC = 'abcd';0x 61 62 63 64 'a' 'b' 'c' 'd'在枚 阅读全文
posted @ 2012-09-13 01:34 HenryRead 阅读(918) 评论(0) 推荐(0)