I am trying to teach myself c++. I've been to the C++ definitions but I'm not very good at understanding the definitions.
My code works and I think I can do what I want, but I'm struggling with understanding the code I copied from an example.
What is "float earth = std::stof(orbits.substr(sz));" doing? It returns a number, but I don't understand how substring knows to pull the second number of the string. And how would I get another substring to pull the third number that I added (purposely not the same length as the first two).
Is size_type identifying the length of the first parsed string?
If yes, somehow does the "substr(sz)" know to begin after the first number pulled?