Pass lines by reference
This commit is contained in:
parent
a565db9b3a
commit
dfa3eabc47
5 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue