Anyway, if the output does not appear, you may need to follow the output statement (just before the Sleep()) with a call to cout.flush(); in order to clear the output buffer.
Another thing. I am programming using CodeBlocks for mac. I tried entering whitenite1's code and it said "Sleep was not declared in this scope" and "Windows.h does not exist" Is there something like a Mac.h?