cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Trying to limit input to int type
Page 2
Trying to limit input to int type
Pages:
1
2
Aug 19, 2013 at 2:11pm UTC
closed account (
3qX21hU5
)
C++11 also added the useful std::to_string(), std::to_wstring() and other conversion.
Stuff to strings
http://en.cppreference.com/w/cpp/string/basic_string/to_string
http://en.cppreference.com/w/cpp/string/basic_string/to_wstring
String to integers
http://www.cplusplus.com/reference/string/stoi/
String to double
http://www.cplusplus.com/reference/string/stod/
String to float
http://www.cplusplus.com/reference/string/stod/
All them also provide extra functions to convert from lets say string to long long or string to long double.
Aug 19, 2013 at 7:11pm UTC
digital3ds
(7)
awesome, thanks a lot guys. I will spend some time studying everything you have given me, and will be back with a lot more questions when I feel I'm ready. thanks again, especially for ur code and references
Topic archived. No new replies allowed.
Pages:
1
2