C++与C混合编译

  1. C++里面对于char*与char[]是看作2个不同类型
  2. C++里面struct可以当成class使用,但是在C中不完全等同,语法上有所限制,比如
struct stu {
    int id;
};
# 在C里面不能直接使用stu,而是使用struct stu. 但是在C++里面可以
原文地址:https://www.cnblogs.com/friedCoder/p/12917397.html