title: a function acting like java's nextInt() in C++?
body: <p>is there any mechanism alternative to X.nextInt() and X.nextCahr() etc in C++?
  which lets getting integers seperated by white space characters(space, tab and newline) from input.</p>