cin / cout console input/output statements.
You should never put cout / getLine statements in Boggle.h/cpp.
If you need to print some of the Boggle class's data, write a member function in Boggle to return the data to boggleplay and then have boggleplay print it.
When you are doing the GUI, you can put GUI/animation code in either file. Ideally most of it would be in boggleplay, but it is almost impossible to animate the word searching and recursive algorithms unless you put that part of the GUI interaction in Boggle.cpp.
foo function.
Now when I try to write foo(); in boggleplay, it doesn't work. Why not?
void playOneGame(...) {
...
Boggle myBoggle(...);
...
myBoggle.foo();
}
Boggle class itself should not contain any output statements to cout.
Therefore, in order for boggleplay to output the current game board state, can we make the data inside Boggle be a public data member instead of private?
getLine or getline, never with "cin >>".
If the line is an empty string, that means the user just pressed Enter.
error: invalid conversion from 'char' to 'const char*'
char in place of a string.
You can convert a char into a string if necessary by doing something like this:
char c = 'Q'; string s; s += c; // "Q"or,
string s = string("") + c;
const?
Boggle object.
Honestly, if you are having trouble with this aspect of the assignment, you could try making every function const, then remove the modifier from the ones that fail to compile.
Though it would be better for you to actually understand why a given member should / shouldn't be const.