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.


Page last modified on April 09, 2023, at 03:26 PM EST

|--Created: Sergey A. Uzunyan -|- Site Config --|