上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 207 下一页

2011年8月19日

C和C++混合编程(转)

摘要: C++项目中的extern "C" {}引言在用C++的项目源码中,经常会不可避免的会看到下面的代码:view sourceprint?1#ifdef __cplusplus 2extern "C" { 3#endif 45/*...*/67#ifdef __cplusplus 8} 9#endif它到底有什么用呢,你知道吗?而且这样的问题经常会出现在面试or笔试中。下面我就从以下几个方面来介绍它:1、#ifdef _cplusplus/#endif _cplusplus及发散 2、extern "C" 2.1、extern关键字2. 阅读全文

posted @ 2011-08-19 17:32 原来... 阅读(20730) 评论(3) 推荐(2)

上一页 1 ··· 95 96 97 98 99 100 101 102 103 ··· 207 下一页

导航