摘要: 全为自己翻译, 如有不妥, 望请斧正.Programming In C++:[1] Represent ideas directly in code.[2] Represent relationships among ideas directly in code (e.g., hierarchica... 阅读全文
posted @ 2014-11-11 22:54 wu_overflow 阅读(172) 评论(0) 推荐(0)
摘要: 1 ≡ sizeof(char) ≤ sizeof(short) ≤ sizeof(int) ≤ sizeof(long) ≤ sizeof(long long)• 1 ≤ sizeof(bool) ≤ sizeof(long)• sizeof(char) ≤ sizeof(wchar_t) ≤ ... 阅读全文
posted @ 2014-11-11 18:41 wu_overflow 阅读(218) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-11-11 16:19 wu_overflow 阅读(194) 评论(0) 推荐(0)
摘要: 全局变量的初始化时机: C 是在编译期初始化, C++ 是在程序运行时, main 函数之前初始化.不使用中间变量实现 strlen:int MyStrlen (const char *str){return *str? MyStrlen(++str) + 1 : 0;}C 语言函数参数入栈顺序为从... 阅读全文
posted @ 2014-11-11 13:19 wu_overflow 阅读(156) 评论(0) 推荐(0)