cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to get an integer from a string?
How to get an integer from a string?
Apr 7, 2012 at 10:46pm UTC
Bubbletea
(4)
Hi, If I have a string input such as "A1", How do I split the string so I can have a string variable that contains "A" and a integer variable that contains "1"?
Any help is appreciated, thank you.
Apr 7, 2012 at 10:51pm UTC
R0mai
(730)
http://cplusplus.com/reference/string/string/substr/
http://cplusplus.com/forum/general/13135/
(here I recomend either
Bazzy
's or
jsimth
's solution)
Topic archived. No new replies allowed.