void trace(const char* s)
{
printf("%s\n",s);
}
class Trace {
public :
void print(const char* s) { printf("%s\n", s); };
};
int main()
{
trace("hi");
Trace t;
t.print("hi2");
//std::cout << "Hello World!\n";
}
原文:https://www.cnblogs.com/wuchaoxin/p/14697775.html