bit*_*ore 6 c++ syntax declaration object
class A{
private:
string a;
public:
A():a("hello world"){};
A(const string & arg):a(arg){};
void put()const{cout<<a;};
};
A aaa();
A bbb;
Run Code Online (Sandbox Code Playgroud)
那么,有什么之间的区别A aaa();和A bbb;是aaa一个功能?