title: The easiest way to read formatted input in C++?
body: <p>Is there any way to read a formatted string like this, for example <code>:48754+7812=Abcs</code>.</p>
  
  <p>Let's say I have three stringz X,Y and Z, and I want</p>
  
  <pre><code>X = 48754 
  Y = 7812
  Z = Abcs
  </code></pre>
  
  <p>The size of the two numbers and the length of the string may vary, so I dont want to use <code>substring()</code> or anything like that.</p>
  
  <p>Is it possible to give C++ a parameter like this</p>
  
  <pre><code>":#####..+####..=SSS.."
  </code></pre>
  
  <p>so it knows directly what's going on?</p>