When I run this in my Eclipse IDE it goes into an infinite loop printing nothing. If I run it in c++ shell on line, it performs what it is directed to do (output infinite 'jj's. Have missed something simple here, or am I out of for while loops?
The execution environment may buffer output per line, so it's possible for nothing to get printed until the next newline.
You can request the buffers to flush with << std::flush
It's an old bug (status 'WONTFIX' for nine years and counting) in eclipse on windows. std::cout << "jj" << std::flush ; won't flush without a new line ( std::cout << "jj\n" << std::flush ; )