Gunnewiek.com

C++ Grid Class

This is a basic grid class which I plan to use for some simple games including a rewrite of my Connect Four game. This grid class uses std::vector for easy memory management.

Accessors:

  • height()
  • width()
  • retrieve(n, m)
  • print()

Mutalators:

  • insert(n, m, x)
  • resize(n, m)

Download