[When posting code, please use code tags so that the code is readable. Go Advanced, select the formatted code and click '#'].

In the replacement code (using cout), this will give the same result...