Does the program continue to run or terminate normally after the print statement. In any case you should see the output at latest when the program stops for next input or when it finishes. What should happen so that you are able to tell that it just doesn't produce output?

Also, endl definitely flushes the output of cout.