I am trying to figure out how to take a string and only get the back portion of it. The string holds an id number and a first and last name. How would I go about taking only the last name?
For example
string s="38452554 John Smith";
how do i get a string t="John Smith" or a string u=Smith;
Have a look at this page: http://cplusplus.com/reference/string/string/
Near the bottom there are functions to find contents in strings and to get substrings from them.
The find_() family of functions and substr() should work for your prupose I think.