关闭
  • 你真的知道C语言里extern "C" 的作用吗?

    经常在C语言的头文件中看到下面的代码: #ifdef __cplusplus extern "C" { #endif // all of your legacy C code here #ifdef __cplusplus } #endif 这通常用于C++和C混合编程的时候,为了防止C++的编译器在编译C文件的时候出现错误; 众所周知,C++可以进行

    单片机
    2020-08-17