You have a dangling pointer. s
is destroyed when it goes out of scope, meaning the pointer to its internal data is no longer valid.
solved find bugs in the c++ code below [closed]
You have a dangling pointer. s
is destroyed when it goes out of scope, meaning the pointer to its internal data is no longer valid.
solved find bugs in the c++ code below [closed]