引用格式(图片+代码段呈现)
extern "C"
{
#include "string.h"
}
代码验证 (分别使用了C++/C 的标准输出)
#include "iostream"
using namespace std;
extern "C"
{
#include "stdio.h"
#include "string.h"
}
int main()
{
int a = 100;
int b = 200;
cout << a << endl;
printf("%d\n", b);
}