Does anyone know how to call the vector pointer so that it can be assigned to an integer? Following is the code:
void floodFillwithColor(vector<vector<int>>* M, int x, int y, int newC){
int* prevC = M[x][y];
int* newCPtr = &newC;
floodFillUtil(M, x, y, prevC, newCPtr);
};
Aucun commentaire:
Enregistrer un commentaire