2015年5月30日

inline(内联函数)

摘要: 1 /* inline 函数(内联函数) */ 2 3 4 #include 5 6 #define GETX3(N) N*N*N// 替换 7 8 // inline 只是对于编译器的建议 9 // 一般情况下我们对内联函数做如下的限制:10 /*11 (1) 不... 阅读全文

posted @ 2015-05-30 21:09 Dragon-wuxl 阅读(177) 评论(0) 推荐(0)

宽字符

摘要: 1 #include 2 #include 3 #include 4 5 int main() 6 { 7 setlocale(LC_ALL, "chs");// 设置本地化 8 wchar_t *p1 = L"123456"; 9 std::wcout << p1 <<... 阅读全文

posted @ 2015-05-30 20:51 Dragon-wuxl 阅读(107) 评论(0) 推荐(0)

导航