[Solved] can i check content of values that have been push_back to a vector? [closed]


Maybe you could use one of the containers, e.g. vector.
you could push_back all the moves into this vector until home is reached.

The size of this vector will be the number of moves.
You can setup a counter array[400] for counting the number of moves into same coordinates.

For each move,
    - `push_back` the move into the vector.
    - increment the counter array indexed by [the move].

2

solved can i check content of values that have been push_back to a vector? [closed]