
作业社区
探索学习新天地,共享知识资源!
0份
提交作业
0个
布置作业
0份
满分作业
讨论题
学习任务
学习任务
风_往北吹 的学生作业:
#include "space.h" namespace A_Space { int calc(int a,int b) { return a+b; } } #include "space.h" namespace B_Space { int calc(int a,int b) { return a-b; } } #ifndef __SPACE_H__ #define __SPACE_H__ #include using namespace std; namespace A_Space { extern int calc(int a,int b); } namespace B_Space { extern int calc(int a,int b); } #endif #include "space.h" int main() { cout





来源:嵌入式软件工程师 · C++命名空间-课后练习
学习任务