
C++
文章平均质量分 84
goning110
这个作者很懒,什么都没留下…
展开
-
An interesting example of name lookup in class scope
关于Name lookup in Class scope发现一个比较有趣的地方。参看程序: #include using namespace std;typedef double Money;class Account {public: void balance() { cout << sizeof(Money) << endl; // This原创 2010-03-03 23:10:00 · 554 阅读 · 0 评论 -
字典排序问题
公司出的练习题。只是放在优快云上。不做讨论。 WordSort.h #ifndef WORDSORT_H_#define WORDSORT_H_typedef int WORDLIST_RESULT;#define WORDLIST_TRUE 1#define WORDLIST_FALSE 0#define WORDLIST_ERROR -1#defin原创 2010-03-11 23:06:00 · 476 阅读 · 0 评论 -
extended Integer Types: __int8, __int16, __int32, __int64
转载自:http://docwiki.embarcadero.com/RADStudio/XE3/en/Int8,_int16,_int32,_int64,_Unsigned_int64,_Extended_Integer_TypesExtended Integer Types: __int8, __int16, __int32, __int64Go Up to K转载 2013-11-02 17:57:32 · 1255 阅读 · 0 评论 -
区分各类编译器与操作系统的宏
转载自:http://blog.youkuaiyun.com/wulibin136/article/details/6358521编译器GCC#ifdef __GNUC__#if __GNUC__ >= 3 // GCC3.0以上Visual C++#ifdef _MSC_VER(非VC编译器很多地方也有定义)#if _MSC_VER >=1000 // V转载 2013-11-02 13:26:27 · 690 阅读 · 0 评论