Stai usando VC++.NET Express Edition?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum