Hello,
I am making the game Yahtzee as a school assignment.
Below is largely outline code, and bits an pieces that I'm working on.
My big problem is that I am handling pointers incorrectly it seems.
I'm not sure if it's my syntax, how I'm handling them, or both.
But I have illustrated in comments off to the side where I get errors. (-fpermissive to be specific)
The error is not "-fpermissive". That's a compiler flag that controls a set of diagnostics. It makes me wonder if you read all of the error messages or not. Some of them are pretty obvious. For instance, "'a_kind" was not declared in this scope", i.e., it doesn't know what a_kind is (you seem to think it's a function).
Another one of your errors is "invalid conversion from 'int' to 'int*'" So you are trying to assign an integer directly to a pointer. That's not a sensible thing to do. Remember that when you dereference a pointer (by putting an asterisk in front of it) you get the thing it points to. So *dice_ar is an int and you are passing it to a function parameter expecting a pointer-to-int. But wait, that's exactly what dice_ar is! So just pass it without the *.
You do the same thing in a couple of other places.
Thank you for your help.
I think that fundamentally the problem is that I don't understand pointers intimately.
Overlooking errors that I should really understand (like errors in scope) is most likely a result of me putting too many consecutive hours into this thing.
Thank you again. I know it's a bit of a scattered post.
This is helpful