0
I have the following string:
0 0 0 0 1 1 0 3.56 1.5
Only the last two numbers are integer or decimal numbers, each can have several digits.
How can I save only the last two numbers in 2 separate strings?
0
I have the following string:
0 0 0 0 1 1 0 3.56 1.5
Only the last two numbers are integer or decimal numbers, each can have several digits.
How can I save only the last two numbers in 2 separate strings?
Browser other questions tagged c++
You are not signed in. Login or sign up in order to post.
What have you ever done? What is your difficulty?
– Maniero
You can get some of the solutions of this question to make a
split
by space, put everything inside aarray
and get the positionssize - 1
andsize - 2
.– Daniel Dutra