first I use the vim and g++ command to compile it:
g++ -o ......
but the output is
6 9 12 52 0
Array size is 5
what the hell is the 0?
last time I compile it, it output
6 9 12 52 52
, repeat the last number
but I recompile it in the Eclipse, it works out correctly.
6 9 12 52
why? what's the problem?
It's so strange that if I use g++ command compile an cpp file in Eclipse , the exectable file works correctly, why?
if I use vim and g++ cimpile, it doesn't work right.
Does Eclipse do something to the cpp file?