You dont learn anything by making a function which uses cout only.
If you do it without any of the other output functions then thats another thing =)