I have a little problem,
I've got a file containing a lot of information ( posted on pastbin, because its pretty long, http://pastebin.com/MPcTMHfd )
Yes, it is a PokerStars card log, but I am making a odd calculator for myself, I even asked PokerStars about that.
When I filter the file I get something like
CODE FOR FILTERING:
getline(failas,line);
if( line.find(search_str) != std::string::npos )
{
firstCard = line.substr(4);
cout << firstCard << '\n' ;
}
- Result:
::: 7c
::: 5d
::: 13c
::: 7d
::: 12h
::: 13d
and so on, so the thing I want to do is get last cards ( 12h and 13h as in the example above )
All I managed to get is last card, (13d) Any ideas, how I could read two lines or any other ideas how to solve my little problem?
I know that it is a beginner question, but I haven't really found a suitable answer anywhere.