I've tested it three ways and they all work fine.
1) Visual Studio 2012 on Windows 7
2) XCode 4.5.2 on Mac OS X 10.8
3) Vim and g++ in Terminal on Mac OS X 10.8
All fine. :-S
Last edited on
Use std::endl instead of "\n".
Why do you think the output should be
a = (1.,1.) and not a = (1,1) or a = (1.0,1.0)?
Thanks kbw, IHutch105,
'... << std::endl;' makes no difference as does 'std::cout.flush();'.
Either of those three versions of output would be fine,