Did you read the link I provided in my last post. That link has links to several other pages that show examples. For instance this sub-link.
Jim
Type: Posts; User: jimblumberg
Did you read the link I provided in my last post. That link has links to several other pages that show examples. For instance this sub-link.
Jim
The problem with doing this directly from the file is that the possible missing name will cause problems. With the stringstream it will be easier, in my opinion, to detect this problem because the...
You may want to consider using a stringstream to process your string. You could then use the extraction operator>> to extract the different strings to their respective variables.
Jim