先做个小测验,不要编译运行,请问下面的代码输出什么?
[cpp]
#include <string>
using std::string;
class Factory {
public:
Factory() {
Factory("scheduler.conf");
printf("Factory()\n");
}
Factory(const string &str) {[......]
先做个小测验,不要编译运行,请问下面的代码输出什么?
[cpp]
#include <string>
using std::string;
class Factory {
public:
Factory() {
Factory("scheduler.conf");
printf("Factory()\n");
}
Factory(const string &str) {[......]