♻️ 使用module重构所有代码

This commit is contained in:
csh
2025-12-07 23:07:03 +08:00
parent 549f1d1b0a
commit f7d5a74615
369 changed files with 2272844 additions and 2202476 deletions
+19
View File
@@ -0,0 +1,19 @@
module;
import std;
export module math;
namespace math
{
export int add(int a, int b)
{
return a + b;
}
export void print_sum(int a, int b)
{
std::cout << a << " + " << b << " = " << add(a, b) << "\n";
}
}