cout << "blah\n"; only push the text on the screen buffer but don't force the cpu to draw it to the screen... That's why you're into the impression that the program waits for 2 seconds and then draw the text... It's in fact the end of the program that force the drawing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.