Week Two Notes
The following page includes notes for the ClassBattleship project.
Technical Tools
Using vectors instead of arrays:
What vector<vector<int>> board means:
vector<int> represents a vector of integers.
vector<vector<int>> represents a vector of vectors of integers --> a two-dimensional vector of integers.
board is a variable of type vector<vector<int>>, which represents the game board.