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