Since cout is a stream, it only handles data. It does not handle how it is displayed. So you can't change the color of cout. Not using a standard header at least.

Windows can change the color of DOS-prompt when including some header. Real DOS can change colors using interrupts. Look it up.