vendredi 21 février 2020

How to use () initializers for vector in class?

This code gives an error

class Board {
  vector<vector<int>> sudoku(9, vector<int>(9));
// Error; Expected a parameter declarator
};

How can I fix it?

Aucun commentaire:

Enregistrer un commentaire