title: Read an array from standard input, ignoring brackets and commas
body: <p>The sample input to my code is:</p>
  
  <pre><code>{ 1, 2, 3, 4 }
  </code></pre>
  
  <p>I wish to ignore the curly brackets and commas, and read the numbers into an array.</p>
  
  <p>How can I do that?</p>