Kết quả tìm kiếm

  1. R

    Constant value changing

    Ohhh
  2. R

    Constant value changing

    Suppose I have a struct definition: struct thing { thing* x; int z; thing() : x(this), z(0) {} void foo() const { this->x->z++; } }; Note that I create a mutable pointer to myself (evil laugh) And then I can use this later like this: int main() { const...
Top