vendredi 1 juin 2018

A memory leak clears a variable

In the execution of the program, the class variable is erased.Please tell me what could be the problem? Example code:

class A
{
private:
    int x;
    int y;
    A(_x, _y)
    {
        x = _x;
        y = _y;
    }
}

with y everything is all right x here it is lost.

Aucun commentaire:

Enregistrer un commentaire