0

在这个例子中:

class foo{
    public::
        foo(int x):x(x){
        }
        int x;
    };

我的编译器能够理解,in x(x),innerx是参数,outerx是成员变量,无需编写this->

这种行为是标准行为吗?

4

0 回答 0