c++extraction-operator

C++ extraction operator : how can one know the number of digits read?


I read an integer number :

is >> myInteger;

Now I want to know how many digits were read (I'm talking of the possible leading zeros). How can I do that?


Solution

  • You can: