title: Using cin/cout streams in functions
body: <p>I was taught in school that using <code>cin</code>/<code>cout</code> to get and show information to the user in a function was considered bad practice. I was told that all input/output should be done in the <code>main</code> function.</p>
  
  <p>Is this true and why?</p>