📄 print.h
字号:
// Exercise 10.3 Using namespaces. The solution is as Exercise 10.2, with changes to
// print.h, print.cpp, printthis.cpp and printthat.cpp:
// print.h
#ifndef PRINT_H
#define PRINT_H
#include <string>
using std::string;
namespace print1 {
// Function prototype
void print(const string& s);
}
namespace print2 {
// Function prototype
void print(const string& s);
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -