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

Rob Stewart R.Stewart at hw.ac.uk
Thu Feb 18 21:17:40 CET 2016


I'd like to write this:

int main()
{  x = /* read from stdin once Enter is pressed, cast to int */
  // x is now an int

What is the function call for reading a character from standard, and how
do I cast this value to an int?



More information about the sac-user mailing list