title: split function for C++
body: <p>Is there a split type function for C++ similar to Java?  I know of ignore, but I don't quite understand it, and how it'll work for my case.</p>
  
  <p>My input is:</p>
  
  <pre><code>{
    item = ball
    book = lord of the rings
    movie = star wars
  }
  </code></pre>
  
  <p>My input given is an <code>&lt;attribute&gt;</code> = <code>&lt;value&gt;</code> and I have to store the two in different strings, or integers (depending on the value, for example, if its a number, use an integer).</p>