o********s 发帖数: 971 | 1 曾经在这个班上看到过一个问题,觉得很典型。前几天想给同事讲一下,但是突然想不
起来了,希望有人能够提醒一下我,谢谢。
这是一道关于c or c++ heap 的问题
it is something like
string a = "abc";
string b = "abc";
then there is an operation on b, after there there is another operation on
string a. the code compiles, but, there is a segmentation fault when running
it.
can anybody nicely reminds me that question?!
thx a ton |
|