- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I'm getting an error saying: error: passing `const model::container::Item' as `this' argument of `void model::container::Item::get_fields()' discards qualifiers I'm getting the message for each of the getters in my class which are declared like this [code=c] const int& division()const{ get_fields(); return division_; } [/code] I'm assuming I'm getting this error because … |
|
Re:
I'm trying to write a Tic Tac Toe game but I'm stuck at the computer AI. Basically for the computer move I need a random generator to pick a number and insert it into a 2D array. The parts that I'm stuck at is writing a code so that computer … |
|
I wrote this distructor one way, but the person who code reviewed it seems to think it's better and more readable the other way. I disagree. It's probably more a matter of preference, but what do you think... [code] RfPrinter::~RfPrinter() { if (!hub_.empty() && !name_.empty()) { clearbuf(rfunitlock); rul_hub = hub_; … |