Pass lines by reference

This commit is contained in:
Joscha 2016-11-04 01:44:29 +00:00
parent a565db9b3a
commit dfa3eabc47
5 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ public:
MarkovMatrix(int length);
~MarkovMatrix();
void feed(std::string line);
void feed(std::string& line);
void reset(int length=0); // reset the matrix, length>0 -> set a new length
std::map<std::string, int> hiccup(std::string& previous);