addwump->set_x(17); <--- addwump is a pointer to a Wumpus object
void Wumpus::set_x(double x_init){
x = x_init;
}
that's my function (member of class Wumpus)
x is a private double in the class.
At runtime, I get an error about trying to write to address 00000000.
the compiler traces it to the line: x = x_init;
Any ideas?
void Wumpus::set_x(double x_init){
x = x_init;
}
that's my function (member of class Wumpus)
x is a private double in the class.
At runtime, I get an error about trying to write to address 00000000.
the compiler traces it to the line: x = x_init;
Any ideas?