[cs13001] converting from string to integer and back

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Oct 9 10:45:34 EDT 2014


CSI students,

In Visual Studio 2013 implements C++11 standard that contains two
functions that you might find useful for the (7th) I/O lab"

	  to_string()   converts a number to string
	  stoi()        converts string to integer

Here is an example usage of the two functions:

     http://vega.cs.kent.edu/~mikhail/classes/csi/Examples/Io/toIntAndBack.cpp

Thanks,
-- 
Mikhail


More information about the cs13001 mailing list