Hi!
I have a problem with a bit of code i'm writing.
What i want to do is:
In the header file:
private:
int board[16];
And in the .cpp file constructor
ScoreBoard::ScoreBoard()
{
int board[16]={-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0};
}
the compiler doesn't complain but i still get trash numbers when i print the board.
How do i do to create the variable board correctly and then set it's values to those above?
Best wishes
Mats