Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基础语法:30、extern"C"的用法 #155

Open
RightOff opened this issue May 15, 2024 · 0 comments
Open

基础语法:30、extern"C"的用法 #155

RightOff opened this issue May 15, 2024 · 0 comments

Comments

@RightOff
Copy link

RightOff commented May 15, 2024

(1)C++调用C函数里的第一行代码是不是应该改为下边这样
extern "C" int add(); // 此处声明告诉C++编译器,add是外部C语言函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant