Home > Back-end >  A class object to invoke a member function, in which the new local class object returns to its refer
A class object to invoke a member function, in which the new local class object returns to its refer

Time:09-30

Class A {
Public:
(A) {m_value=https://bbs.csdn.net/topics/0; }
Int getValue () {
Return m_value;
}
A. & Do () {
A, A.
//...
return a;
}
Private:
Int m_value;
};
Int main ()
{
A, A.
A b=a. d. o ();
Printf (" value=https://bbs.csdn.net/topics/%d/n ", b.g etValue ());
return 0;
}
  • Related