title: Reading in a specific format with cin
body: <p>How can i read in a specific format using cin?
  Example:-for reading a complex number, I would like the user to enter it as usual:x+yi,
  so i want something like this:
  cin>>x>>"+">>y>>"i";
  But this is giving an error.What is the right way?Help greatly appreciated.</p>