求建议一些做理论好的学校# Economics - 经济
g*s
1 楼
class A {
public:
A() {}
~A() {}
...
};
std::map M;
std::map::iterator it = M.find("hello");
if (it==M.end()) M["hello"]=A();
合法但风格不好,还是很正常的用法?看着别扭。
public:
A() {}
~A() {}
...
};
std::map
std::map
if (it==M.end()) M["hello"]=A();
合法但风格不好,还是很正常的用法?看着别扭。