1
struct Test {
    int w, h;
    int * p;
};

int main(){
    Test t {
        10,
        20,
        new int[this->h*this->w]
    };
    return 0;
}

初期化で w と h を使用したいだけですが、これを取得する方法はありますか?

4

2 に答える 2