引入C++库

This commit is contained in:
2026-01-17 18:19:52 +08:00
parent 7f56f47f13
commit 0fa708c0de
8 changed files with 288 additions and 0 deletions

9
cpp/library.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "library.h"
#include <iostream>
extern "C" {
void hello() {
std::cout << "Hello, World!" << std::endl;
}
}