I know how to convert a character array containing numbers to an integer using iostream:
char[] ar = "1234";
int num;
ar >> num;
but how would I convert the last four characters of that array to an int?
char[] ar = "sl34nfoe11intk1234";
int num;
????;
Is there a way to point to an element in the array and start streaming from there?
Ideally I would start streaming from max array size – 4.
Now
ppoints to the'1'of"1234", and you can feedpinto the stream.