mutexe : string path hold the direction that follow the robot ( 'LEFT','RIGHT'...etc)
keskiverto : The pathSize is the size of the array path.
* i have code in State but i didn't copy it here..
* WIDTH = HEIGTH
* here i paste it wrong.In my code i have
this->free[i][j] = old.free[i][j];
* Ok i new to c++ so in this part i need your help.
The default constructor is this?
State(const State &old);
In this case the program compile with error undefined reference to `State::State(State conts& )'
I have try this constructor but i think is the same with the old one
1 2
|
State(const State &old): robX(old.robX),robY(old.robY),
pathSize(old.pathSize),path(old.path){}
|
The program run but the pathSize is 0.I m sure that the dfs and the other classes are
correct so i want to make sure that the copy constructor really copy the old fields to current.