Exemplo n.º 1
0
 /**
  * Resizes the table rows.
  * @param n the number of rows.
  */
 void setNumRows(int n) {
     table.resize(n);
 }
Exemplo n.º 2
0
 /**
  * Clears and initializes the table.
  * @param n the number of rows.
  */
 void init(int n = 0) {
     table.clear();
     table.resize(n);
 }