I am working on a function which needs me to take the substring of the first two elements of a line.
char those = line.substr(0,1);
When I run the program, it only takes the first element, that's it.
Can you tell me what I'm doing wrong?
Also, how can I tell C++ to get the following elements from an index until the end of the line?