[sac-user] Reading a value from stdin, casting to an int?

Rob Stewart R.Stewart at hw.ac.uk
Fri Feb 19 23:34:59 CET 2016

Hi Clemens,

On 19/02/2016 at 08:45 Clemens Grelck writes:

> Have a look into the ScalarIO module of the stdlib. The function
> you're looking for is this one:
> inline bool, int fscanint(File &stream)

Thanks yes. That's what I was looking for, and it's working for me.

success, result=ScalarIO::fscanint(stdin);


More information about the sac-user mailing list