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
char Array to int Array
char Array to int Array
Dec 7, 2015 at 6:33pm UTC
MaxW20
(1)
I have a char Array with 50 numbers who are seperated with a blank. I want to store each of these numbers in an int array. For example:
10 5 29 10 2223 21 67 3 39 ...
Any idea? Thanks a lot!
Dec 7, 2015 at 7:51pm UTC
jgg2002
(217)
Do you mean taking each element from the char Array and putting it into an int Array?
Dec 7, 2015 at 7:55pm UTC
underoathed
(59)
Do you have any code written? Are the numbers contained in a file, being input from the keyboard, or are they input into the code itself? If you have code written please post it so we can analyze it.
Topic archived. No new replies allowed.