Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な質問があります。次のコードがあります。
class Class1 { Class1(); ~Class1(); void func1(); private: char* c; } void Class1::func1() { string s = "something"; this->c = s.c_str(); }
終了時にc保存しますか?"something"func1()
c
"something"
func1()