我的《守则》要求我保持记忆,这一发言多次重复:
Node** x;
x = new Node*[11];
这笔拨款没有兑现。 我把产出扔到圣殿上来,从而 out下了这条线。
I am building my code on Visual Studio. It works fine in Debug mode (both in VS2005 and VS2008) However it throws the error in VS2005 Release mode. A direct exe generated from cl Program.cpp works if cl is from VS2010 but fails when it s from VS2005. Any clues?
PS: Linux gives me a Bus Error(core dumped) for the same Thanks
UPDATE: And I guess, it can be due to unaligned thing as I understand. I just made 11 to 12 (or any even number) and It works!!! I don t know why. It doesn t work with odd numbers!
更新2:?